Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to drop section titles/headers #293

Open
Matthieu-Tinycoaching opened this issue Sep 19, 2022 · 1 comment
Open

Option to drop section titles/headers #293

Matthieu-Tinycoaching opened this issue Sep 19, 2022 · 1 comment

Comments

@Matthieu-Tinycoaching
Copy link

Hi,

When extracting to JSON format a wikidump:
python -m wikiextractor.WikiExtractor -o simpleWikipedia --templates template --json --bytes 200M simplewiki-20220901-pages-articles.xml.bz2

I would like to remove all subsections titles/headers and keep only textual paragraphs of the corpus (e.g. remove "The Month" and "April in poetry" titles from this page: https://simple.wikipedia.org/wiki/April)

Would there be any option or simple fix in the code to do in order to discard headers/titles?

Thanks!

@Matthieu-Tinycoaching
Copy link
Author

Hi,

@attardi any idea on how to deal with these?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant