# How to extract person names from user input?

**URL:** <https://forum.rasa.com/t/how-to-extract-person-names-from-user-input/34901>\
**Category:** Rasa Open Source\
**Created:** [September 27, 2020, 10:29pm UTC](https://forum.rasa.com/t/how-to-extract-person-names-from-user-input/34901 "2020-09-27T22:29:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![huseyinyilmaz01](https://avatars.discourse-cdn.com/v4/letter/h/e99b99/32.png) [@huseyinyilmaz01](https://forum.rasa.com/u/huseyinyilmaz01)\
**Post date:** [September 27, 2020, 10:29pm UTC](https://forum.rasa.com/t/how-to-extract-person-names-from-user-input/34901/1 "2020-09-27T22:29:54Z")

</div>

Upon a specific intent, I need to make a query with the extracted person name. I used combinations of “SpacyEntityExtractor” and “CRFEntityExtractor”, alone and together.

There is no problem with the intent prediction. But they are not working properly. For example, it extracts “Parker” and “George”, but not “Henry” and “Diana”. And interestingly, it doesn’t extract names which were extracted before. How should I extract the person names?

My congig.yml:

```
pipeline:
  - name: "SpacyNLP"
  - name: profanity_analyzer.ProfanityAnalyzer
  - name: SpacyTokenizer
  - name: CountVectorsFeaturizer
  - name: RegexFeaturizer
  - name: "SpacyEntityExtractor"
  - name: "CRFEntityExtractor"
  - name: DIETClassifier
    epochs: 70
    random_seed: 2
  - name: EntitySynonymMapper

```

my intent:

```
## intent:ask_homework

- Show me the [homework](homework) for [George](PERSON)

- what is the [homework](homework) for [Yuri](PERSON)

- [workload](homework) for [Eva](PERSON)

- what is the homework for Adam

- what does James have

- [homework](homework) for Henry

- [homework](homework) of [Diana](PERSON)
```

---

_[View the full topic](https://forum.rasa.com/t/how-to-extract-person-names-from-user-input/34901)._
