EU copyright law includes TDM exceptions, with conditions and opt-outs depending on context.
Automated analysis of text or data to detect patterns, trends, or correlations. The EU exception only applies if you have lawful access and the rights holder has not exercised a machine-readable opt-out.