W dniu 25.07.2016 o 16:28, Mike Unwalla pisze: > Hello, > > The word 'haven' has these postags: NN, MD, VBP. > > When the word is not a verb (as in "the village is a haven of tranquility"), > I want to remove MD and VBP. Postag VBP causes 'haven' to appear as a > suggestion when I use postag_replace with the verb 'have'. > > I can think of 2 methods to remove the unwanted postags, but I am not sure > about the best method: > 1) Remove MD and VPB using removed.txt. Change the rules in > disambiguation.xml to apply MD and VBP when 'haven' is used as part of a verb > (as in "I haven't a clue what to do"). > 2) Leave the postags as they are. Add a rule in disambiguation to remove MD > and VBP when 'haven' is used as a noun. > > I think that the first option is better, because 'haven' is not a verb. It is > part of a verb when it occurs in "haven't". > > What do you think is the best method, and why?
I'd use the second method because this is what I did with other similar cases. It's mostly because I used to write disambiguation files to remove readings rather than to add ones. But either way will do. BTW: VBP is most definitely wrong, as 'have' cannot be negated as a normal verb by using a contraction. Best, Marcin ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports.http://sdm.link/zohodev2dev _______________________________________________ Languagetool-devel mailing list Languagetool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-devel