Skip to content

divided up the text into summary, and contnt for NLP processing#249

Open
ertosns wants to merge 2 commits into
WikiExtractor:masterfrom
ertosns:master
Open

divided up the text into summary, and contnt for NLP processing#249
ertosns wants to merge 2 commits into
WikiExtractor:masterfrom
ertosns:master

Conversation

@ertosns

@ertosns ertosns commented Mar 16, 2021

Copy link
Copy Markdown

i divide up the text into two parts summary, and content, this can help in NLP processing specifically for summarizing transformers, for example the output of wikiextractor can be used to train wiki-summary https://github.com/ertosns/wiki-summary

@attardi

attardi commented Mar 17, 2021

Copy link
Copy Markdown
Collaborator

Isn't

summary = [i for i in page]

the same as:

summary = page

@ertosns

ertosns commented Mar 17, 2021

Copy link
Copy Markdown
Author

yes it is of course, but in case of numpy it will be a reference to it, i see in this case page is just a python default list, so you are absolutely right, perhaps i thought it was numpy! i will fix it now.

@ertosns

ertosns commented Mar 17, 2021

Copy link
Copy Markdown
Author

also the output need to be pruned a bit, for example to add the option to fit certain criteria, for example some output is too long, or too short. i will work on that soon.

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

Successfully merging this pull request may close these issues.

2 participants