-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[nl] prevent 2+ part compound words from being accepted #9971
Conversation
|
||
CompoundAcceptor() { | ||
tagger = Languages.getLanguageForShortCode("nl").getTagger(); | ||
this.DutchTagger = new DutchTagger(); |
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.
We prefer to avoid creating new instances. Use the previous version. I will add a default tagger for NL.
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 here. 1e445e1
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.
Apart from the initialization of the tagger, it looks good.
@@ -558,14 +558,14 @@ public class CompoundAcceptor { | |||
} | |||
} | |||
|
|||
private final Tagger tagger; | |||
private final DutchTagger DutchTagger; |
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.
The class is capitalized (DuchTagger
), but the variable should be lowercase (dutchTagger
).
} | ||
|
||
public CompoundAcceptor(Tagger tagger) { | ||
this.tagger = tagger; | ||
public CompoundAcceptor(DutchTagger dutchTagger) { |
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.
This constructor (lines 566-568) seems unnecessary. It is never used, and the tagger is initialized in line 561.
No description provided.