Re:Books in .txt format for AI training purposes
by ralph87 on Sunday October 25, 2020 @02:35PM
(#24888676)
The entirety of Library Genesis (about 2.7 million books, fairly poorly curated) can also be downloaded, its somewhere around 40 TB altogether of significantly more recent books.
[ Parent
| on HN ]
Re:Books in .txt format for AI training purposes
by gwern on Sunday October 25, 2020 @10:22PM
(#24892275)
The problem with LibGen, and why EleutherAI has been avoiding it, is that most of it is PDFs and most of the PDFs are scans; OCR layers are typically incredibly crummy. Even if you re-OCR them all with Tesseract or something (which will take quite a while, based on how long Tesseract takes to OCR my books even using parallelism on a Threadripper), the OCR will still be awful data. Do you really want to add that to your training dataset...? Far from obvious, and not when there are so many other pools of text like Arxiv which aren't so insoluble.
Re:Books in .txt format for AI training purposes
by ralph87 on Monday October 26, 2020 @12:55PM
(#24898273)
It of course depends entirely on what kind of tool you are trying to build. PDFs capture a ton of visual information lost in plain text. I know the parent article is discussing construction of a text model, but what about say, if you were attempting to build the ultimate AI page reflow tool? etc.
Re:Books in .txt format for AI training purposes
by GordonS on Sunday October 25, 2020 @02:46PM
(#24888761)
In plain text format though?
AFAIK, most is in PDF, EPUB or mobi format. I'd presume it's not too difficult to extract text from the latter two, but extracting text from PDFs is far from simple, and something you get working for 1 PDF won't necessarily work on another.