hello well this is my code from future import absolute_import from future import division from future import unicode_literals from future import unicode_literals
from rasa_core import utils
from rasa_core.agent import Agent from rasa_core.policies.keras_policy import KerasPolicy from rasa_core.policies.memoization import MemoizationPolicy from rasa_core.policies.sklearn_policy import SklearnPolicy
if name == ‘main’: utils.configure_colored_logging(loglevel=“DEBUG”)
training_data_file = './data/stories.md'
model_path = './models/dialogue'
agent = Agent('horoscope_domain.yml', policies = [MemoizationPolicy(), KerasPolicy()])
training_data = agent.load_data(training_data_file)
agent.train(
training_data,
augmentation_factor = 50,
epochs = 500,
batch_size = 10,
validation_split = 0.2
)
agent.persist(model_path)
the problem that receive is Traceback (most recent call last): File “train_initialize.py”, line 20, in agent = Agent(‘horoscope_domain.yml’, policies = [MemoizationPolicy(), KerasPolicy()]) File “/Users/x/.local/lib/python3.6/site-packages/rasa_core/agent.py”, line 198, in init self.domain = self._create_domain(domain) File "/Users/x/reate_domain return Domain.load(domain) File “/Users/x/.local/lib/python3.6/site-packages/rasa_core/domain.py”, line 89, in load return cls.from_yaml(read_file(filename)) File “/Users/x/.local/lib/python3.6/site-packages/rasa_core/domain.py”, line 93, in from_yaml cls.validate_domain_yaml(yaml) File “/Users/x/.local/lib/python3.6/site-packages/rasa_core/domain.py”, line 123, in validate_domain_yaml source_data = utils.read_yaml_string(yaml) File “/Users/x/.local/lib/python3.6/site-packages/rasa_core/utils.py”, line 343, in read_yaml_string return yaml_parser.load(string) File “/Users/x/.local/lib/python3.6/site-packages/ruamel/yaml/main.py”, line 331, in load return constructor.get_single_data() File “/Users/x/.local/lib/python3.6/site-packages/ruamel/yaml/constructor.py”, line 109, in get_single_data node = self.composer.get_single_node() File “_ruamel_yaml.pyx”, line 706, in _ruamel_yaml.CParser.get_single_node File “_ruamel_yaml.pyx”, line 724, in _ruamel_yaml.CParser._compose_document File “_ruamel_yaml.pyx”, line 775, in _ruamel_yaml.CParser._compose_node File “_ruamel_yaml.pyx”, line 891, in _ruamel_yaml.CParser._compose_mapping_node File “_ruamel_yaml.pyx”, line 904, in _ruamel_yaml.CParser._parse_next_event ruamel.yaml.scanner.ScannerError: mapping values are not allowed in this context in “”, line 8, column 14 what should I do exactly thx for advanced