buerokratt / Training-Module

MIT License
2 stars 21 forks source link

GUI for REGEX #55

Open vmugra opened 1 year ago

vmugra commented 1 year ago

Acceptance Criterias:

  • [ ] Display introduction text/link to kratid.ee for how to make a REGEX

See REGEX documentation: https://rasa.com/docs/rasa/nlu-training-data#regular-expressions

You can use regular expressions to improve intent classification and entity extraction in combination with the RegexFeaturizer and RegexEntityExtractor components in the pipeline.

image

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)

List of REGEXes view:

image image

Edit REGEXes view:

image image
vmugra commented 1 year ago

@ceirowe REGEX requirements updated.

ceirowe commented 1 year ago

@vmugra Prototype updated according to AC-s.

vmugra commented 1 year ago

@ceirowe marked as Done!

bartekpospiech commented 10 months ago

@Kristjan259 what about this one?