hassil icon indicating copy to clipboard operation
hassil copied to clipboard

Wildcard capitalization issues during recognition

Open tetele opened this issue 1 year ago • 2 comments

Fixtures:

entities:
  - name: "Joseph"
    id: "person.jospeh"
    state: "home"
  - name: "Ada"
    id: "person.ada"
    state: "Work"
  - name: "John"
    id: "person.john"
    state: "not_home"

Sentences and tests:

lists:
  zone:
    wildcard: true
intents:
  HassGetState:
    data:
      - sentences:
          - "is anyone [<in>] [the] {zone:state}"
        response: any
        slots:
          domain: person
tests:
  - sentences:
      - "is anyone at Work"
    intent:
      name: HassGetState
      slots:
        domain: person
        state: Work
    response: "Yes, Ada"

produces

E                           AssertionError: Expected work, got Work for slot state for: is anyone at Work
E                           assert 'Work' == 'work'
E                             - work
E                             ? ^
E                             + Work
E                             ? ^

tests/test_language_sentences.py:143: AssertionError

tetele avatar Nov 14 '23 09:11 tetele