-
Notifications
You must be signed in to change notification settings - Fork 30
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
New enwiki feature: total length of paragraphs without references #59
Conversation
Codecov Report
@@ Coverage Diff @@
## master #59 +/- ##
==========================================
+ Coverage 35.43% 36.07% +0.63%
==========================================
Files 33 33
Lines 1013 1023 +10
==========================================
+ Hits 359 369 +10
Misses 654 654
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much, sorry for late answer, this is a very nitpicky thing but it's needed.
wikiclass/feature_lists/enwiki.py
Outdated
@@ -60,6 +82,7 @@ | |||
main_article_templates / max(wikitext.revision.content_chars, 1), | |||
(english.stemmed.revision.stem_chars / | |||
max(wikitext.revision.content_chars, 1)), | |||
paragraphs_without_refs_total_length, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One thing, this without scaling can cause abnormalities in the result, you need to add "log" to counting features, look at https://github.com/wiki-ai/wikiclass/blob/9e7660d6a2054119662de887e79456f44d9adf98/wikiclass/feature_lists/wikibase.py for example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
6c9aeaf
to
7d9a311
Compare
|
||
Short line.<ref>last</ref><ref>One more reference</ref> | ||
""" | ||
assert solve(enwiki.paragraphs_without_refs_total_length, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Niiice
Bug: T174384