Thanks for this useful library! I noticed the getNouns() function is not accurate.
For example:
Please give this note to the man in the blue hat.
Returns the following nouns:
["give","note","man","blue","hat"]
It's true the word 'give' can sometimes be a noun, such as when a material has 'some give', but in this sentence, and 99% of the time, it's a verb.
Here's another simple example:
Can you ask her what time it is?
WordPos returns the following as nouns:
But of course a sentence starting with 'Can' does not refer to a metal container. And it skips the pronoun.
Would it be possible to improve the accuracy of getNouns()? I realize the answer might be no, as NLP like this is very hard.
Thanks!
Thanks for this useful library! I noticed the
getNouns()function is not accurate.For example:
Returns the following nouns:
It's true the word 'give' can sometimes be a noun, such as when a material has 'some give', but in this sentence, and 99% of the time, it's a verb.
Here's another simple example:
WordPos returns the following as nouns:
But of course a sentence starting with 'Can' does not refer to a metal container. And it skips the pronoun.
Would it be possible to improve the accuracy of
getNouns()? I realize the answer might be no, as NLP like this is very hard.Thanks!