Hi everyone. I am new in Rasa. I try to create bot which translate input which is in another language into English before intent recognition. All my intents are in English. But I met few problems. Can you help me?
Versions :
Rasa Version : 3.6.6
Minimum Compatible Version: 3.5.0
Rasa SDK Version : 3.6.2
Python Version : 3.10.0
Operating System : Windows-10
some files in folder structure:
rasa_bot:
-
config.yml
-
custom_components
- custom_nllb.py
- _ init_.py
config.yml:
language: en
pipeline:
- name: custom_components.custom_nllb.CustomNLLBTranslation
- name: SpacyNLP
model: "xx_ent_wiki_sm" # or "xx_ent_wiki_sm" for multiple languages
- name: SpacyTokenizer
- name: RegexFeaturizer
- name: RegexEntityExtractor
use_lookup_tables: True
use_regexes: False
case_sensitive: False
regex_patterns:
- name: rooms
pattern: '\b(\d+)\s*(?:rooms?|bedrooms?|beds?)\b'
- name: bath
pattern: '\b(\d+)\s*(?:baths?|bathrooms?)\b'
- name: house_size
pattern: '\b(\d+)\s*(?:sqft|square\s*feet|m2|sqm|ft|meter|meters)\b'
- name: DIETClassifier
epochs: 200
entity_recognition: True
- name: EntitySynonymMapper
- name: ResponseSelector
epochs: 100
- name: FallbackClassifier
threshold: 0.70
- name: SpacyEntityExtractor
dimensions: ["GPE"]
- name: "ResponseSelector"
_init _.py:
from .custom_nllb import CustomNLLBTranslation
error I met:
raise GraphSchemaValidationException(
rasa.engine.exceptions.GraphSchemaValidationException: Node 'execution_context_provider' is not part of the graph. Node was expected to be present in the graph as it is used by another component.