Skip to content

Commit

Permalink
use yaml spec 1.2 so that yes does not get parsed to boolean value …
Browse files Browse the repository at this point in the history
…`True`
  • Loading branch information
wochinge committed Nov 19, 2018
1 parent 155f82e commit 0f2f894
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions data/examples/rasa/demo-rasa.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
],
"common_examples": [
{
"text": "hey",
"text": "hey",
"intent": "greet",
"entities": []
},
{
"text": "howdy",
"text": "howdy",
"intent": "greet",
"entities": []
},
Expand Down Expand Up @@ -116,6 +116,11 @@
"intent": "affirm",
"entities": []
},
{
"text": "True",
"intent": "affirm",
"entities": []
},
{
"text": "i'm looking for a place to eat",
"intent": "restaurant_search",
Expand Down
2 changes: 1 addition & 1 deletion rasa_nlu/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def read_yaml(content):
replace_environment_variables()

yaml_parser = yaml.YAML(typ="safe")
yaml_parser.version = "1.1"
yaml_parser.version = "1.2"
yaml_parser.unicode_supplementary = True

return yaml_parser.load(content)
Expand Down

0 comments on commit 0f2f894

Please sign in to comment.