In the United States, there was case that got a decent amount of publicity where the opinion was that training a model on copyrighted works is "highly transformative" and is therefore permitted under fair use.
https://towardsdatascience.com/the-most-important-supreme-co...