Person Name Detection using SpaCy in English Lang. Looking for Answer

Haider Raza picture Haider Raza · Jul 6, 2018 · Viewed 7.9k times · Source

I am using Spacy and trying to detect names in the text. For example, text = 'Keras is a good package. Adam Smith uses a car of black colour. I hope Katrina is doing well in her job.'

The answer should like this: Adam Smith and Katrina.

Can anyone recommend

Answer

0x5050 picture 0x5050 · Jul 9, 2018

This is a typical Named Entity Recognition problem. Spacy has a pre-trained model to enable this, which should be accurate to detect person names.

Take a look at this code sample.

According to Spacy's annotation scheme, names are marked as PERSON.