You can use regular expressions to improve intent classification and entity extraction in combination with the RegexFeaturizer and RegexEntityExtractor components in the pipeline.
EXAMPLE:
version: "3.0"
nlu:
- regex: asukoht
examples: |
- [Tt]allinn
- [Tt]amsalu
- [Tt]apa
- synonym: tallinn
examples: |
- pealinn
- suurlinn
- suurlinnas
- intent: rahvaarv
examples: |
- palju rahvast eestis elab
- kui palju elanikke meil on
- mitu inimest harjumaal on
- inimeste arv
- rahvaarv
- eesti rahvastik
- mitu inimest [tallinn](asukoht) elab
- rahvaarv [pealinnas](asukoht)
Acceptance Criterias:
You can use regular expressions to improve intent classification and entity extraction in combination with the RegexFeaturizer and RegexEntityExtractor components in the pipeline.
EXAMPLE:
List of REGEXes view:
Edit REGEXes view: