I need a tool or program to separate English nouns and names from a text like:

I like apples, I live in NewYork.

This would give apples and NewYork.

Is there a library or tool that can do this or a big list of all words that are not nouns/names (in English)?

  • 1
    Should it recognize "Apples" or "apples"? And "NewYork" or "New York"? – Pierre.Vriens Jan 23 '18 at 18:01
  • What about "New York is the big apple"? ;-) – Mawg says reinstate Monica Jan 24 '18 at 12:45
  • Capital letters dont matter. And probaly New is reconize as adjective. – Vinicius Morais Jan 24 '18 at 13:38

You could use spacy. It's based on ML and NLP, and is trained to do stuff like finding nouns, which includes names (though it does more too, but since that's what you're looking for, I use that as an example).

The docs contains some examples on finding nouns, so it should be what you're looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.