java - How to convert plural nouns into singular nouns -
this question has answer here:
in recent project, faced task convert plural nouns singular forms. know pos tagging algortihms , tools can recognize plural forms of nouns , tag them 'nns', did not know algorithm can cenvert them singular forms. have tried stemming, stemming seems aggressive convert word. gives this:
parties -> parti
but want is:
fish -> fish classes -> class parties -> party goods -> goods cups -> cup
this seems difficult problem without huge dictionary every english word in it. there mature algortihm can make it? happy learn if there library can libraries in java. thanks.
what want lemmatizer instead of stemmer. there multiple implementations in java. find stanford corenlp easiest use command line. morpha popular.
ps question duplicate. i'm answering because finding answer through google surprisingly hard.
Comments
Post a Comment