hassil icon indicating copy to clipboard operation
hassil copied to clipboard

New feature - match sentence

Open tetele opened this issue 1 year ago • 1 comments

Consider the following sentence: turn off the lights and close the blinds.

This sentence could be matched with {sentence1} and {sentence2} where both sentences are defined as wildcards, but if either sentence contains an and, the actual split may not work properly. More over, there's not guarantee that either sentence defined as a wildcard will be interpretable as a sentence in the end.

It would be useful to have a special kind of list that only matches sentences, such as:

lists:
  sentence1:
    sentence: true
  sentence2:
    sentence: true

intents:
  And:
    data:
      - sentences:
          - "{sentence1} and[ then] {sentence2}"

tetele avatar Jan 03 '24 23:01 tetele