HazyResearch / bootleg

Self-Supervision for Named Entity Disambiguation at the Tail
http://hazyresearch.stanford.edu/bootleg
Apache License 2.0
212 stars 27 forks source link

fix: added strip/lower flags to constants.py #103

Closed lorr1 closed 2 years ago

lorr1 commented 2 years ago

Integrated strip/lower flagging for better multilingual support when using get_lnrm in mention extraction.

codecov[bot] commented 2 years ago

Codecov Report

Merging #103 (b48f371) into master (c005172) will increase coverage by 0.63%. The diff coverage is 89.47%.

@@            Coverage Diff             @@
##           master     #103      +/-   ##
==========================================
+ Coverage   83.71%   84.34%   +0.63%     
==========================================
  Files          34       34              
  Lines        4900     4919      +19     
  Branches      912      912              
==========================================
+ Hits         4102     4149      +47     
+ Misses        595      570      -25     
+ Partials      203      200       -3     
Flag Coverage Δ
unittests 84.34% <89.47%> (+0.63%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
bootleg/dataset.py 80.27% <0.00%> (-0.12%) :arrow_down:
bootleg/slicing/slice_dataset.py 80.13% <0.00%> (-0.54%) :arrow_down:
bootleg/utils/utils.py 86.42% <85.71%> (+1.53%) :arrow_up:
bootleg/end2end/extract_mentions.py 81.52% <100.00%> (ø)
bootleg/symbols/constants.py 100.00% <100.00%> (ø)
bootleg/symbols/entity_profile.py 88.57% <100.00%> (ø)
bootleg/symbols/entity_symbols.py 89.77% <100.00%> (ø)
bootleg/utils/classes/nested_vocab_tries.py 92.24% <100.00%> (ø)
bootleg/utils/eval_utils.py 91.92% <100.00%> (+5.35%) :arrow_up:
bootleg/utils/preprocessing/compute_statistics.py 92.64% <100.00%> (ø)
... and 5 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more