Error initializing graph component
See original GitHub issueHi, I am developing a bot with rasa and I wanted to include the component rasa_nlu_examples.extractors.FlashTextEntityExtractor.
I have added it to my configuration file which is as follows:
recipe: default.v1
language: es
pipeline:
- name: WhitespaceTokenizer
- name: RegexFeaturizer
- name: LexicalSyntacticFeaturizer
- name: CountVectorsFeaturizer
- name: CountVectorsFeaturizer
analyzer: char_wb
min_ngram: 1
max_ngram: 4
- name: rasa_nlu_examples.extractors.FlashTextEntityExtractor
case_sensitive: True
- name: DIETClassifier
epochs: 100
constrain_similarities: true
- name: EntitySynonymMapper
- name: ResponseSelector
epochs: 100
constrain_similarities: true
- name: FallbackClassifier
threshold: 0.2
ambiguity_threshold: 0.01
policies:
- name: MemoizationPolicy
- name: RulePolicy
- name: TEDPolicy
max_history: 5
epochs: 100
constrain_similarities: true
I have also added to my nlu file a lookup table with some countries, I add the start below as an example:
version: '3.0'
nlu:
- lookup: pais
examples: |
- Afganistán
- Åland
- Albania
- Alemania
- Andorra
When using the command rasa train it trains a model and saves it in the models folder but when using rasa shell or rasa interactive it gives me the following error:
ERROR rasa.core.agent - Could not load model due to Error initializing graph component for node ‘run_rasa_nlu_examples.extractors.FlashTextEntityExtractor5’…
Versions:
Windows 11
rasa==3.0.4
rasa-nlu-examples @ git+https://github.com/RasaHQ/rasa-nlu-examples@c762a7ebcaef23220b20280db2546415a5b1622e
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
Cannot load model, error initializing graph for DIETClassifier ...
ERROR rasa.core.agent - Could not load model due to Error initializing graph component for node 'run_DIETClassifier4'.. docker-compose up.
Read more >Could not load model due to Error initializing graph component
Hi everybody, I succeed to train my model but when I run rasa shell from command line I get the following error message:...
Read more >Cannot load model, error initializing graph for DIETClassifier ...
The probable issue is the model file that would be referencing component dependencies from /tmp. and causing the model to go rogue when ......
Read more >Initializing Mutually Referential Abstract Objects - Microsoft
Abstract. Mutual dependencies between objects arise frequently in programs, and program- mers must typically solve this value recursion by manually filling ...
Read more >GraphX - Spark 3.3.1 Documentation
GraphX is a new component in Spark for graphs and graph-parallel computation. ... graph can be recreated on a different machine in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That makes sense to me! Do you want to open a PR for it?
Based on the error you pointed out, I think the problem is in that the country names in the file have special characters and can’t be read with this
words = pathlib.Path(self.path).read_text().split("\n"), I have executed it and the same error appeared.If I execute
words = pathlib.Path(r'..\data\countries.txt').read_text(encoding='utf-8').split("\n"), it reads the file correctly.Is it possible to add the encoding as an argument to the extractor?
Thank you! 😃