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

Fix for #50 #54

Merged
merged 6 commits into from
Aug 7, 2018
Merged

Fix for #50 #54

merged 6 commits into from
Aug 7, 2018

Conversation

highsource
Copy link
Contributor

This fixes #50 by adding label.endsWith("*") check.
Unit test is also included using the word Gelb.

@codecov-io
Copy link

codecov-io commented Jul 29, 2018

Codecov Report

Merging #54 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #54      +/-   ##
============================================
+ Coverage     75.99%   76.04%   +0.04%     
  Complexity     1321     1321              
============================================
  Files           101      101              
  Lines          4629     4633       +4     
  Branches        801      801              
============================================
+ Hits           3518     3523       +5     
+ Misses          895      894       -1     
  Partials        216      216
Impacted Files Coverage Δ Complexity Δ
.../jwktl/parser/de/components/DEWordFormHandler.java 78.06% <100%> (+0.58%) 72 <18> (-1) ⬇️
...tl/parser/de/components/DEPartOfSpeechHandler.java 69.11% <0%> (+1.47%) 16% <0%> (+1%) ⬆️

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 db23009...f972a2e. Read the comment docs.

@highsource
Copy link
Contributor Author

CLA not signed yet.

@highsource
Copy link
Contributor Author

I've asked for a confirmation for CCLA, but this may take my employer very long time (huge corp).
Should I maybe sign the ICLA first?

@chmeyer
Copy link
Member

chmeyer commented Aug 3, 2018

Thanks for all your changes. ICLA would be fine for merging. CCLA is recommended, but it depends on what status the work has for your company and how they deal with OSS projects in general.

if (label.endsWith("1") || label.endsWith("2")
|| label.endsWith("3") || label.endsWith("4"))
label = label.substring(0, label.length() - 1).trim();
for (String labelSuffix: NOUN_TABLE_LABEL_SUFFIXES) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe a RegEx, e.g., \s\d*\*?\*?$ would be more efficient?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd leave it like this for now. Most probably I'll rework this for #57 anyway.

Personally, I'm not a fan of regular expressions. I would not be able to understand what \s\d*\*?\*?$ does without checking the documentation.

@highsource
Copy link
Contributor Author

I'm working to get CCLA but it may take pretty long time.

@highsource
Copy link
Contributor Author

I've signed and e-mailed the ICLA.

@highsource
Copy link
Contributor Author

Could this please be merged as well?

@chmeyer chmeyer merged commit 62f8dd9 into dkpro:master Aug 7, 2018
@highsource highsource deleted the issue-50 branch August 7, 2018 17:34
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.

Support Plural* in noun table
3 participants