It’s up to the courts to decide if this is a copyright infringement. The EU at least already allows the use of copyrighted material for research purposes into text and data mining, so the main question will hinge on whether or not the result of such research can be commercially exploited.