3.2. Ontology
How to use ontologies for matching in Natex.
Ontology
transitions = {
'state': 'start',
'`What is your favorite animal?`': {
'[{dog, ape, rat}]': {
'`I love mammals!`': 'end'
},
'[{snake, lizard}]': {
'`Reptiles are slick, haha`': 'end'
},
'[{frog, salamander}]': {
'`Amphibians can be cute :)`': 'end'
},
'error': {
'`I\'ve never heard of that animal.`': 'end'
}
}
}Expression
Variable
Loading
Code Snippet
Last updated
Was this helpful?