I have some training examples that have the same goal, but use enums/symbols (to reduce the training examples needed.)
How can I match the symbols in a result view?
I've looked at pattern matching in the docs here: https://bixbydevelopers.com/dev/docs/dev-guide/developers/customizing-plan.match-patterns
I think this is pretty straightforward. I have an enum:
enum (sizes) {
description (drink sizes)
symbol (large)
symbol (medium)
symbol (small)
}
And some corresponding vocabulary:
vocab (sizes) {
"large" {"large", "largest", "big"}
"medium" {"medium", "normal"}
"small" {"small", "smallest", "tiny"}
}
And then for training I might have:
[g:BuyDrink] I want a (large)[v:sizes:large] drink
[g:BuyDrink] I want the (smallest)[v:sizes:small] drink
I want different result views for the two utterances, but I can't figure out the correct match pattern.