Hi, I’m quite new to OpenEars. I have been experimenting RuleORama. I have two questions:
Here is the grammar structure:
let grammar = [
ThisWillBeSaidOnce : [
[ OneOfTheseWillBeSaidOnce : ["HELLO", "GREETINGS"]],
[ OneOfTheseCanBeSaidOnce : ["COMPUTER", "ROBOT"]],
[ OneOfTheseWillBeSaidOnce : ["GO", "MOVE"]],
[ThisWillBeSaidWithOptionalRepetitions : [
[ OneOfTheseWillBeSaidOnce : ["10", "20","30"]],
[ OneOfTheseWillBeSaidOnce : ["LEFT", "RIGHT", "FORWARD"]]
]],
[ ThisCanBeSaidOnce : ["THANK YOU"]]
]
]
(1) I built (Swift 3) the project onto by iPhone and said: “Hello go 20 left, 30 right”
Here is the response: “HELLO ROBOT GO 20 LEFT HELLO GO 30 RIGHT” with a score of (-60563) and an utterance ID of 2.
It picked up an extra ‘ROBOT,’ but my question is how did pick up the second ‘GO’? Did I make a mistake in the structure above?
(2) Just to confirm I get this: If there 5 distinct statements a user could make (where the above was 1 of them), to do this I would change at the ThisWillBeSaidOnce at the top level to OneOfTheseWillBeSaidOnce with five sets of [].
Thanks for any help!
Keith
-
This topic was modified 6 years ago by kdsaft.