I know you can annotate words in intent examples with an entity, e.g.:
intent: add.drink
- examples: |
- can I get a [small](drink.size) [latte](drink.type)
But adding (at least) 1 example for every value of every entity in my database would make the NLU file huge!
Is it possible to define entity values elsewhere, thereby making the NLU file (c)leaner?
Things I have tried but to no avail:
Lookup tables:
- lookup: drink.size
examples: |
- small
- medium
- large
Categorical slots:
slots:
drink.size:
type: categorical
influence_conversation: true
values:
- small
- medium
- large
My pipeline:
pipeline:
- name: WhitespaceTokenizer
- name: RegexFeaturizer
- name: DIETClassifier
epochs: 100
constrain_similarities: true
- name: RegexEntityExtractor
case_sensitive: false
use_lookup_tables: true
use_regexes: true
use_word_boundaries: true