# How to detect phrases from an English sentence.

The question is not about detecting keyphrases. It is about detecting a combination of words makes a valid phrase or not. For example,

"John reads New York Times in New York."

Here, the phrases are

New York Times

New York

Detecting keyword phrases is a Text Summarization problem, however, here it is classifying whether a combination of words make a valid phrase or not.

There have been a few algorithms we have gone through including but not limited to models.phrases – Phrase (collocation) detection of Gensim, however, we are looking for better results.

• Have you tried detecting n-grams and then performing summarisation? Jul 6, 2018 at 9:37
• Interesting proposition. Will try and update the results here. Jul 6, 2018 at 20:04
• A common practice is to detect n-grams lets say New York, New Delhi etc. and then replace them with New_York and New_Delhi etc. so that it appears as a single token, and the summarisation algorithm treats it that way. Jul 7, 2018 at 2:49

The name for what you want to do is Named Entity Recognition (NER). There are several great software packages for this, namely: