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

Log the pages that generated no snippets, for further analysis. #176

Open
eggpi opened this issue Jan 2, 2022 · 0 comments
Open

Log the pages that generated no snippets, for further analysis. #176

eggpi opened this issue Jan 2, 2022 · 0 comments

Comments

@eggpi
Copy link
Owner

eggpi commented Jan 2, 2022

At a high level, our workflow for going through Wikipedia to find snippets is:

  1. Enumerate all articles that have a {{citation needed}} template.
  2. Process each of those articles trying to extract a snippet around those templates.
  3. Figure out the categories of each article and a few more details.

Often, in step 2, we look at an article but fail to extract any snippets, even though the template is there. We should log these occurrences somewhere, so eventually we can tweak the code to get more snippets.

I think this could be as simple as inserting a log statement here in parse_live.py, once we've invoked the snippet parser and saw that it gives us no results.

We could also get a little more clever and log articles where we didn't extract enough snippets: e.g. there were 5 occurrences of the template, but only 1 snippet was produced.

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
@eggpi and others