-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dialogflow import bug "No training examples found for the dialogflow file data\intents\<every intent>.json!" #6137
Comments
@A-A-R0N When would |
@melindaloubser1 The language is set in the agent.json file for every chatbot I have tried importing. It is just somehow being lost in the processing. I've attached an example chatbot using one one of the dialogflow samples. You can see that the agent.json file does populate the language, but if you go through the steps to import the chatbot, it will produce the errors I'm talking about because at some point the the language value gets overwritten. The steps I followed are here: |
I see what you mean; it's called again during the |
It looks like the issue is on this line: Line 82 in b932c9f
The expected argument is
and that works fine. @wochinge do you know the reason for passing |
@melindaloubser1 should be |
Ok cool! @A-A-R0N if you wanted to change your PR to make that fix, it could be merged into 1.10.x? |
Thanks @melindaloubser1! I've updated the PR as requested. |
Rasa version: Rasa 1.10.3
Rasa SDK version (if used & relevant):
Rasa X version (if used & relevant):
Python version: python 3.6.8
Operating system (windows, osx, ...): windows 10
Issue:
For every imported intent, a warning message is given saying it cannot find the example data even though the files are there. I have tried this will several exported chatbots including very simple sample ones.
Cause:
This issue is caused when the language variable set to None in the /nlu/training_data/formats/dialogflow.py file. When generating the intent example filename in the _read_example_js function, it generates it as "intent_name_usersays_None.json" instead of "intent_name_usersays_en.json". I've already addressed the issue in my local code with a simple check against the language variable that corrects the value if it is None. I'm looking for the best place to update the code and will submit a pull request. I see calling request actually set a default value, but somewhere down the line a None value is passed for language.
Error (including full traceback):
Command or request that led to error:
Content of configuration file (config.yml) (if relevant):
It doesn't seem to be relevant, it is the default file.
Content of domain file (domain.yml) (if relevant):
This is the default file.
The text was updated successfully, but these errors were encountered: