java - How to convert plural nouns into singular nouns -


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

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -