## intent:query
- Query: [What is for loop in C](stack_query)
- Query: [What is history of C](stack_query)
- Query: [How to declare variables in C](stack_query)
- Query: [What is range of integer in C](stack_query)
- Query: [How to use while loop in C](stack_query)
- Query: [How to break out of loop in C](stack_query)
- Query: [What is use of continue statment in loop](stack_query)
- Query: [What are data types in C](stack_query)
- Query: [What are types of error in C](stack_query)
- Query: [How to declare variable in C](stack_query)
- Query: [break statment in C](stack_query)
- Query: [How are variables declared in C](stack_query)
how do I transform this to work for v 2.0?
I changed it to:
- intent: query
examples: |
- [What is for loop in C](stack_query)
- [What is history of C](stack_query)
- [How to declare variables in C](stack_query)
- [What is range of integer in C](stack_query)
- [How to use while loop in C](stack_query)
- [How to break out of loop in C](stack_query)
- [What is use of continue statment in loop](stack_query)
- [What are data types in C](stack_query)
- [What are types of error in C](stack_query)
- [How to declare variable in C](stack_query)
- [break statment in C](stack_query)
- [How are variables declared in C](stack_query)
YamlSyntaxException: Failed to read 'data/nlu.yml'. while parsing a block mapping
in "data/nlu.yml", line 328, column 3:
- intent: query
^ (line: 328)
expected <block end>, but found '-'
in "data/nlu.yml", line 330, column 3:
- [What is for loop in C](stack_ ...
^ (line: 330)
You can use https://yamlchecker.com/ to validate the YAML syntax of your file.
First off – Do you have these lines at the top of your file?
version: "2.0"
nlu:
Missing the nlu line may be the cause of the first error message you’re seeing. The examples need to be indented further than the examples line, like so:
- intent: query
examples: |
- [What is for loop in C](stack_query)
- [What is history of C](stack_query)
- [How to declare variables in C](stack_query)
- [What is range of integer in C](stack_query)
- [How to use while loop in C](stack_query)
- [How to break out of loop in C](stack_query)
- [What is use of continue statment in loop](stack_query)
- [What are data types in C](stack_query)
- [What are types of error in C](stack_query)
- [How to declare variable in C](stack_query)
- [break statment in C](stack_query)
- [How are variables declared in C](stack_query)
If this doesn’t work for you, feel free to share the whole file and I can take a look.