# Prevent a group of word to be extracted as an entity

**URL:** <https://forum.rasa.com/t/prevent-a-group-of-word-to-be-extracted-as-an-entity/30828>\
**Category:** Rasa Open Source\
**Created:** [June 30, 2020, 9:24am UTC](https://forum.rasa.com/t/prevent-a-group-of-word-to-be-extracted-as-an-entity/30828 "2020-06-30T09:24:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vspiewak](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/vspiewak/32/9833_2.png) [@vspiewak](https://forum.rasa.com/u/vspiewak)\
**Post date:** [June 30, 2020, 9:24am UTC](https://forum.rasa.com/t/prevent-a-group-of-word-to-be-extracted-as-an-entity/30828/1 "2020-06-30T09:24:30Z")

</div>

Hi !

I’m using Spacy FR and `DucklingHTTPExtractor` to extract dates & interval dimensions. It work really well except for a corner case.

> Combien d’utilisateurs ont été créés depuis hier ?

meaning:

> How many users have been created since yesterday

`DucklingHTTPExtractor` will extract _hier_ (_yesterday_) as a date, but also _été_ (_summer_) as a date.

_été_ means indeed _summer_ in French, but _ont été_ is simply _have been_

Is there a way to prevent this ?

Here is my current pipeline configuration:

```
language: "fr" # your two-letter language code

pipeline:
  - name: SpacyNLP
  - name: SpacyTokenizer
  - name: SpacyFeaturizer
  - name: RegexFeaturizer
  - name: LexicalSyntacticFeaturizer
  - name: CountVectorsFeaturizer
  - name: CountVectorsFeaturizer
    analyzer: "char_wb"
    min_ngram: 1
    max_ngram: 4
  - name: DIETClassifier
    epochs: 100
  - name: SpacyEntityExtractor  
  - name: DucklingHTTPExtractor
    url: http://localhost:8000
    locale: "fr_FR"
    # if not set the default timezone of Duckling is going to be used
    # needed to calculate dates from relative expressions like "tomorrow"
    timezone: "Europe/Paris"
    # Timeout for receiving response from http url of the running duckling server
    # if not set the default timeout of duckling http url is set to 3 seconds.
    timeout : 3        
  - name: EntitySynonymMapper
  - name: ResponseSelector
    epochs: 100

# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
  - name: MemoizationPolicy
  - name: TEDPolicy
    max_history: 5
    epochs: 100
  - name: MappingPolicy

```
