AI firms are buying old books in bulk, cutting them apart, and scanning them to create chatbot training data.