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

Is it possible to get entire text from link? #163

Closed
aryan1107 opened this issue Feb 4, 2022 · 1 comment
Closed

Is it possible to get entire text from link? #163

aryan1107 opened this issue Feb 4, 2022 · 1 comment
Assignees
Labels

Comments

@aryan1107
Copy link

For example in newspaper python library you can do article.text for getting entire text.

Any similar command for sumy?

@miso-belica
Copy link
Owner

Hi, sumy is not meant as an article parser. It's just a minor feature to ease the article summarization on the web. The algorithm is far from perfect and uses breadability. You should use the library for the text extraction as newspaper, justText or alternatives in its readme.

But if you really want you can do this to get the full article from the parser: " ".join(map(str, parser.document.sentences)).

@miso-belica miso-belica self-assigned this Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants