Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature - match sentence #96

Open
tetele opened this issue Jan 3, 2024 · 1 comment
Open

New feature - match sentence #96

tetele opened this issue Jan 3, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tetele
Copy link
Contributor

tetele commented Jan 3, 2024

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}"
@synesthesiam synesthesiam added the enhancement New feature or request label Jan 4, 2024
@synesthesiam synesthesiam self-assigned this Jan 4, 2024
@tetele
Copy link
Contributor Author

tetele commented May 31, 2024

Here's a perfect use case: home-assistant/intents#2196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants