I am new to Rasa-core and currently trying to train my model with fallback policy First i tried with python -m rasa_core.train -d domain.yml -s data/stories.md -o models/current/dialogue --nlu_threshold 0.1 --core_threshold 0.1 --fallback_action action_default_fallback -c policies.yml But it didn’t worked as we need to insert Fallback policy in ensemble of policies, then as suggested in and Implementing Default Fallback Actions I created a train.py script to train it and save the model.
training_data_file = 'data/stories.md' model_path = 'models/dialogue' fallback = FallbackPolicy(fallback_action_name="action_default_fallback", core_threshold=0.3, nlu_threshold=0.3) agent = Agent("domain.yml", policies=[MemoizationPolicy(max_history=5), KerasPolicy(), fallback]) data = agent.load_data(training_data_file) agent.train( data, augmentation_factor=50, epochs=500, batch_size=10, validation_split=0.2 ) agent.persist(model_path)
But now i cannot run the model using python -m rasa_core.run --enable_api --auth_token thisismysecret -o models/dialogue -d models/dialogue -u models/current/nlu --endpoints endpoints.yml
As it is giving return open(self.baseFilename, self.mode, encoding=self.encoding) PermissionError: [Errno 13] Permission denied: ‘C:\user\…\Mentor-Chatbot\models\dialogue’
I tried to give the folder all read write permission but it didn’t worked. Can anyone help me , how i can run this.