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

⚡️ ♻️ Abbreviation replacer refactor - approach II #71

Merged
merged 5 commits into from
Aug 4, 2020

Conversation

nipunsadvilkar
Copy link
Owner

Keeping master code (logic from pragmatic segmenter) as it is. Just doing splitlines and a line at a time for search_for_abbreviations_in_string and concatenate approach

@codecov-commenter
Copy link

codecov-commenter commented Jul 16, 2020

Codecov Report

Merging #71 into master will increase coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #71      +/-   ##
==========================================
+ Coverage   98.30%   98.41%   +0.11%     
==========================================
  Files          37       37              
  Lines        1063     1074      +11     
==========================================
+ Hits         1045     1057      +12     
+ Misses         18       17       -1     
Flag Coverage Δ
#unittests 98.41% <100.00%> (+0.11%) ⬆️

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

Impacted Files Coverage Δ
pysbd/lang/common/common.py 100.00% <ø> (ø)
pysbd/abbreviation_replacer.py 100.00% <100.00%> (ø)
pysbd/about.py 100.00% <100.00%> (ø)
pysbd/lang/deutsch.py 100.00% <100.00%> (ø)
pysbd/processor.py 95.83% <100.00%> (ø)
pysbd/segmenter.py 100.00% <100.00%> (ø)
pysbd/utils.py 75.86% <100.00%> (+2.52%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6c596f...6b84eaa. Read the comment docs.

Copy link

@DeNeutoy DeNeutoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the spreadsheet, it looks like this approach is much better!

Does it still pass the golden rules? If so, seems like this is the right way.

@nipunsadvilkar
Copy link
Owner Author

@DeNeutoy Yes, it passes all the tests. Have configured CI builds that way to run test on each commit.

Fix eq method of TextSpan
account for same text with different char_span
remove spacy requirement
@nipunsadvilkar nipunsadvilkar merged commit 92362f7 into master Aug 4, 2020
@nipunsadvilkar nipunsadvilkar deleted the npn-abbr-refactor branch August 4, 2020 14:38
This was referenced Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants