Microsoft reached a deal with News Corp.’s HarperCollins that will allow the software company to use nonfiction titles from the book publisher to train its Artificial Intelligence models, according to a person familiar with the matter. The company isn’t planning to use the content to generate new books without human authors, the person said.