#135 · Primary category: NLP Tools & Text Processing
bookcorpus
Crawl BookCorpus
Project last updated:07/14/23
GitHub Stars
864
Forks
112
Contributors
6
License
MIT
Why we included this project
The original BookCorpus is no longer publicly distributed, which is a real obstacle for anyone trying to reproduce the sentence-encoder and decoder experiments built on it. This repo ships working Python scripts that crawl the same source the dataset came from, smashwords: the pipeline collects a list of free book URLs, downloads each title as plain text, and falls back on extracting text from epub files when that is the only format available. The result is a sentence-per-line file you can feed straight into a tokenizer, with an optional check that discards epub conversions whose word count diverges too far from the official stats. If you would rather not crawl at all, the README points to public copies of the data and is frank about the flaws in each, including a paper on the known deficiencies of BookCorpus and its replicates. Just remember that the underlying books remain under copyright and subject to the source site's terms of service.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
flair
A very simple framework for state-of-the-art Natural Language Processing (NLP)
compromise
modest natural-language processing
tokenizers
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
CoreNLP
CoreNLP: A Java suite of core NLP tools for tokenization, sentence segmentation, NER, parsing, coreference, sentiment analysis, etc.
Chinese-Word-Vectors
100+ Chinese Word Vectors 上百种预训练中文词向量