# CountVectorizer warnings

**URL:** <https://forum.rasa.com/t/countvectorizer-warnings/21054>\
**Category:** Rasa Open Source\
**Created:** [November 9, 2019, 5:29am UTC](https://forum.rasa.com/t/countvectorizer-warnings/21054 "2019-11-09T05:29:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KarthiAru](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/karthiaru/32/7163_2.png) [@KarthiAru](https://forum.rasa.com/u/KarthiAru)\
**Post date:** [November 9, 2019, 5:29am UTC](https://forum.rasa.com/t/countvectorizer-warnings/21054/1 "2019-11-09T05:29:54Z")

</div>

Hi,

I’m using `rasa 1.4.0` and I’m getting a few CountVectorizer warnings. Can you help me understand these issues? What is the impact on the model due to this?

```auto
2019-11-09 10:38:59 WARNING rasa.nlu.featurizers.count_vectors_featurizer - Unable to train CountVectorizer for message attribute text. Leaving an untrained CountVectorizer for it
2019-11-09 10:38:59 WARNING rasa.nlu.featurizers.count_vectors_featurizer - Unable to train CountVectorizer for message attribute intent. Leaving an untrained CountVectorizer for it
2019-11-09 10:38:59 DEBUG rasa.nlu.featurizers.count_vectors_featurizer - No text provided for response attribute in any messages of training data. Skipping training a CountVectorizer for it.

```

This is my `config.yml`

```auto
language: en
pipeline:
- name: WhitespaceTokenizer
- name: CRFEntityExtractor
- name: EntitySynonymMapper
- name: CountVectorsFeaturizer
  stop_words: {'english'}
  analyzer: word
  token_pattern: r'(?u)\b\w\w+\b'
  lowercase: true
  max_ngram: 5
  min_ngram: 1
  OOV_token: ' __oov__'
  OOV_words: ['Singapore', 'Australia', '2019', '2020']
- name: CountVectorsFeaturizer
  analyzer: char_wb
  lowercase: true
  max_ngram: 5
  min_ngram: 3
- name: EmbeddingIntentClassifier
  random_seed: 12345
  intent_split_symbol: +
  intent_tokenization_flag: true
- name: DucklingHTTPExtractor
  url: http://localhost:8000
  dimensions:
  - time
  - number
  - amount-of-money
  - distance
  locale: en_GB
  timezone: US/Eastern
  timeout: 20

policies:
- name: KerasPolicy
  rnn_size: 32
  epochs: 150
  batch_size: 32
  validation_split: 0.1
  max_history: 10
  random_seed: 12345
- name: FormPolicy
- name: AugmentedMemoizationPolicy
  max_history: 6
- name: MappingPolicy
- name: TwoStageFallbackPolicy
  core_threshold: 0.3 
  nlu_threshold: 0.9
  ambiguity_threshold: 0.1
  fallback_core_action_name: action_default_fallback
  fallback_nlu_action_name: action_default_ask_affirmation
  deny_suggestion_intent_name: out_of_scope

```

---

<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, 3:18pm UTC](https://forum.rasa.com/t/countvectorizer-warnings/21054/2 "2019-11-11T15:18:01Z")

</div>

Hi there, what does your NLU data look like?

---

<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:** [February 24, 2020, 8:11pm UTC](https://forum.rasa.com/t/countvectorizer-warnings/21054/4 "2020-02-24T20:11:17Z")

</div>

@pranavinu I think we fixed this issue. What version are you running, and what does your configuration look like?

---

<div class="post-metadata">

**Author:** ![pranavinu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranavinu/32/5247_2.png) [@pranavinu](https://forum.rasa.com/u/pranavinu)\
**Post date:** [February 26, 2020, 10:18am UTC](https://forum.rasa.com/t/countvectorizer-warnings/21054/5 "2020-02-26T10:18:42Z")

</div>

hi @erohmensing, I am using 1.6.2 version. My config file looks like:

language: en

pipeline:

- name: SpacyNLP
- name: WhitespaceTokenizer
- name: CRFEntityExtractor
- name: EntitySynonymMapper
- name: CountVectorsFeaturizer
- name: EmbeddingIntentClassifier batch\_strategy: sequence

policies:

- name: FallbackPolicy nlu\_threshold: 0.3 core\_threshold: 0.4 fallback\_action\_name: “action\_default\_fallback”
- name: FormPolicy
- name: MappingPolicy
- name: KerasPolicy epochs: 300

---

<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:** [March 2, 2020, 5:39pm UTC](https://forum.rasa.com/t/countvectorizer-warnings/21054/6 "2020-03-02T17:39:17Z")

</div>

Oh okay fair. that isn’t a warning message (it would be yellow if it was), just a debug message. that component could train a countvectorizer for responses, but there isn’t any data, so it will skip it. its nothing to worry about

---

<div class="post-metadata">

**Author:** ![pranavinu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/pranavinu/32/5247_2.png) [@pranavinu](https://forum.rasa.com/u/pranavinu)\
**Post date:** [April 3, 2020, 7:44am UTC](https://forum.rasa.com/t/countvectorizer-warnings/21054/7 "2020-04-03T07:44:24Z")

</div>

okay @erohmensing. Thanks 🙂
