If I want to use spacy for extracting name then what would the config file looks like?

One thing you can try is to remove the duplicate entities (name and PERSON) and duplicate intents (name and myname). Does that help?