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 #63 Consider mn and mfn genders #64
Fix for #63 Consider mn and mfn genders #64
Conversation
- Added a reproducing tests for Tetragraph (mn) and Flipchart (mfn)
- Moved gender text parsing to a special-purpose enum. - Added recognition of mn - Added recognition of mfn - Small fixes in tests
Codecov Report
@@ Coverage Diff @@
## master #64 +/- ##
===========================================
+ Coverage 76.03% 76.3% +0.27%
Complexity 1323 1323
===========================================
Files 101 102 +1
Lines 4631 4643 +12
Branches 802 795 -7
===========================================
+ Hits 3521 3543 +22
+ Misses 895 890 -5
+ Partials 215 210 -5
Continue to review full report at Codecov.
|
- Renamed DEGrammaticalGendersText to DEGendersText as it is closer to the gender text rather than grammatical genders
This is how I'd work with genders
This allows considering "raw" values during the parsing, but does not expose those in the resulting model. |
@chmeyer This PR is ready to be merged. |
NM("nm", GrammaticalGender.NEUTER, GrammaticalGender.MASCULINE), | ||
NF("nf", GrammaticalGender.NEUTER, GrammaticalGender.FEMININE), | ||
MFN("mfn", GrammaticalGender.MASCULINE, GrammaticalGender.FEMININE, GrammaticalGender.NEUTER); | ||
|
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.
If we want to keep compatibility to DEPartOfSpeechHandler, let's add "w" => FEM as well (see line 102 in the original code)
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.
Ok, w
just does not seem to occur anymore.
- Added `w` to `DEGendersText` for backwards compatibility
Added I think this can be merged now. |
This will fix the #63.
This is a WIP PR, please do not merge yet.