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
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
.