I thought it’d be useful to make a program that reads text files, such as books, and outputs their genres. My research has concluded that I might need to train my own language model on a large set of books and their genres. Is this really the best method, and if it is, how should I go about doing that in Python?
I would prefer that any methods that are used are free. As well as work on Mac.