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

How to exclude disclaimer? #67

Open
fedecaccia opened this issue Apr 3, 2018 · 1 comment
Open

How to exclude disclaimer? #67

fedecaccia opened this issue Apr 3, 2018 · 1 comment

Comments

@fedecaccia
Copy link

fedecaccia commented Apr 3, 2018

I wonder if there is a way to exclude a disclaimer section in the bottom of the content. For example in this page: https://medium.com/eosio/eosio-stack-exchange-proposal-a4b3787e1562
I'm using:

import requests
from dragnet import extract_content
url = "https://medium.com/eosio/eosio-stack-exchange-proposal-a4b3787e1562"
r = requests.get(url)
extract_content(r.content) 
@pakelley
Copy link
Collaborator

@fedecaccia If you have a labelled dataset with examples of those disclaimers you could probably train a model that excludes them. Other than that, I don't know of a good way to explicitly exclude those (except maybe some post-processing that explicitly finds those disclaimers).
in other words, the current model considers those disclaimers content, and you would have to teach it otherwise to have them filtered out on the dragnet level.

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

2 participants