Failed to validate at component 'intent_featurizer_ngrams'. Missing property: 'spacy_doc'

rasa-nlu
(alexander zhou) #1

Hello everyone

I’m a rookie. I had this problem in the process of using Nlu.

Traceback (most recent call last): File “/usr/local/python3/lib/python3.6/runpy.py”, line 193, in _run_module_as_main “main”, mod_spec) File “/usr/local/python3/lib/python3.6/runpy.py”, line 85, in _run_code exec(code, run_globals) File “/usr/local/python3/lib/python3.6/site-packages/rasa_nlu/train.py”, line 184, in num_threads=cmdline_args.num_threads) File “/usr/local/python3/lib/python3.6/site-packages/rasa_nlu/train.py”, line 154, in do_train interpreter = trainer.train(training_data, **kwargs) File “/usr/local/python3/lib/python3.6/site-packages/rasa_nlu/model.py”, line 186, in train components.validate_arguments(self.pipeline, context) File “/usr/local/python3/lib/python3.6/site-packages/rasa_nlu/components.py”, line 86, in validate_arguments “”.format(component.name, r)) Exception: Failed to validate at component ‘intent_featurizer_ngrams’. Missing property: ‘spacy_doc’

and the configuration file for pipeline is

language: zh
pipeline:
- name: "tokenizer_jieba"
- name: "ner_crf"
- name: "intent_featurizer_ngrams"
- name: "intent_classifier_tensorflow_embedding"

How can i solve this problem?

(Leonardo Custodio) #2

Can you try moving the intent_classifier_tensorflow_embedding line before the intent_featurizer_ngrams?

(alexander zhou) #3

thanks. I tried it, but it doesn’t work.