# Rasa stopwords issue

**URL:** <https://forum.rasa.com/t/rasa-stopwords-issue/11869>\
**Category:** Rasa Open Source\
**Created:** [June 21, 2019, 8:26am UTC](https://forum.rasa.com/t/rasa-stopwords-issue/11869 "2019-06-21T08:26:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Farheen-J](https://avatars.discourse-cdn.com/v4/letter/f/ce73a5/32.png) [@Farheen-J](https://forum.rasa.com/u/Farheen-J)\
**Post date:** [June 21, 2019, 8:26am UTC](https://forum.rasa.com/t/rasa-stopwords-issue/11869/1 "2019-06-21T08:26:17Z")

</div>

Earlier my config.yml was:

```auto
language: en
pipeline: supervised_embeddings

policies:
  - name: MemoizationPolicy
  - name: KerasPolicy
  - name: MappingPolicy

```

But then I had to configure stopwords, so now my file is:

```auto
language: en
pipeline:
- name: "WhitespaceTokenizer"
- name: "RegexFeaturizer"
- name: "EmbeddingIntentClassifier"
- name: "CRFEntityExtractor"
- name: "EntitySynonymMapper"
- name: "CountVectorsFeaturizer"
  stop_words: {'I', 'in', 'the'}

policies:
  - name: MemoizationPolicy
  - name: KerasPolicy
  - name: MappingPolicy

```

But I’m getting below error on executing rasa train: ValueError: Cannot feed value of shape (64,) for Tensor ‘a:0’, which has shape ‘(?, 417)’

How to resolve this, Also is the 2nd config.yml equilvalent to supervised\_embeddings other than stopwords change?

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [June 25, 2019, 4:03pm UTC](https://forum.rasa.com/t/rasa-stopwords-issue/11869/2 "2019-06-25T16:03:49Z")

</div>

I realize that this

> stop\_words: None # string {‘english’}, list, or None (default)

Could be a little confusing. I believe you want

```auto
- name: "CountVectorsFeaturizer"
  stop_words: ['I', 'in', 'the']

```

As for the pipeline, it’s not exactly equivalent, as the components are out of order – not sure if that is causing your error, as output from previous components are used as input for later ones. Here is the supervised embeddings pipeline:

```auto
pipeline:
- name: "WhitespaceTokenizer"
- name: "RegexFeaturizer"
- name: "CRFEntityExtractor"
- name: "EntitySynonymMapper"
- name: "CountVectorsFeaturizer"
- name: "EmbeddingIntentClassifier"

```

---

<div class="post-metadata">

**Author:** ![Farheen-J](https://avatars.discourse-cdn.com/v4/letter/f/ce73a5/32.png) [@Farheen-J](https://forum.rasa.com/u/Farheen-J)\
**Post date:** [November 9, 2019, 9:16pm UTC](https://forum.rasa.com/t/rasa-stopwords-issue/11869/3 "2019-11-09T21:16:57Z")

</div>

Thanks @erohmensing, That was the issue 🙂

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [November 11, 2019, 1:25pm UTC](https://forum.rasa.com/t/rasa-stopwords-issue/11869/4 "2019-11-11T13:25:14Z")

</div>

Awesome, happy to help 🚀
