I am trying to write a validation script for my data as suggested in the document Validate Data. But, m getting error while running my script.
Can you please help me with the place where m going wrong ?
Traceback (most recent call last):
File "validate.py", line 12, in <module>
validator.verify_all()
File "/home/user/Documents/dev_env/venv/lib64/python3.6/site-packages/rasa/core/validator.py", line 152, in verify_all
self.verify_intents_in_stories()
File "/home/user/Documents/dev_env/venv/lib64/python3.6/site-packages/rasa/core/validator.py", line 69, in verify_intents_in_stories
domain_intents = self.verify_intents()
File "/home/user/Documents/dev_env/venv/lib64/python3.6/site-packages/rasa/core/validator.py", line 41, in verify_intents
for intent in self.domain.intent_properties:
AttributeError: 'str' object has no attribute 'intent_properties'
We are using python 3.6. So, i modified the asyncio.run command. But, it fails to fetch the story_steps.
Is there any other way to fetch the stories ??
(I tried to create an object of NluDataImporter and try to fetch the stories, but, it failed.)
----- Error on using the above code-----------
Traceback (most recent call last):
File "validate.py", line 10, in <module>
domain = asyncio.run(file_importer.get_domain())
AttributeError: module 'asyncio' has no attribute 'run'
------------Updated Code to make it compatible with Python 3.6---------