Hey! I tried training an LLM using books last year, and it was a mixed bag. The biggest headache was cleaning up the text—OCR errors are brutal, especially with older books.
I used tools like Tesseract for OCR and then cleaned up the output with regex in Python. For chunking, I split by chapters to keep some structure.
Honestly, web scraping might be easier, but books give you way better quality if you’re willing to put in the work. Check out Project Gutenberg for clean, pre-formatted classics!
I used tools like Tesseract for OCR and then cleaned up the output with regex in Python. For chunking, I split by chapters to keep some structure.
Honestly, web scraping might be easier, but books give you way better quality if you’re willing to put in the work. Check out Project Gutenberg for clean, pre-formatted classics!
