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

Wildcard used as last thing in a permutation greedily grabs everything #87

Open
tetele opened this issue Dec 12, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@tetele
Copy link
Contributor

tetele commented Dec 12, 2023

# sentences/ro/person_HassGetSate.yaml
language: ro
intents:
  HassGetState:
    data:
      - sentences:
          - "(<name>;<este> [<la>] {zone:state})"
        response: someone_yesno
        requires_context:
          domain: person
        slots:
          domain: person
# tests/ro/_fixtures.yaml
language: ro
entities:
  - name: "Claudiu"
    id: "person.claudiu"
    state:
      in: "Plecat"
      out: "not_home"
    attributes:
      untranslated_state: "not_home"
@tetele ➜ /workspaces/intents (ro-untranslated-state ✗) $ python3 -m script.intentfest parse --language ro --sentence 'Claudiu este la magazin'
{
  "text": "Claudiu este la magazin",
  "match": true,
  "intent": "HassGetState",
  "slots": {
    "name": "Claudiu",
    "state": "magazin",
    "domain": "person"
  },
  "context": {
    "domain": "person",
    "untranslated_state": "not_home"
  },
  "response_key": "someone_yesno",
  "response": "Nu, ci Plecat"
}
@tetele ➜ /workspaces/intents (ro-untranslated-state ✗) $ python3 -m script.intentfest parse --language ro --sentence 'este la magazin Claudiu'
No language set, so cannot convert brightness digits to words
No language set, so cannot convert brightness digits to words
{
  "text": "este la magazin Claudiu",
  "match": false
}
@synesthesiam synesthesiam added the bug Something isn't working label Jan 4, 2024
@synesthesiam synesthesiam self-assigned this Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants