hassil

Intent parsing for Home Assistant

APACHE-2.0 License

Downloads
28.4K
Stars
85
Committers
10

Bot releases are visible (Hide)

hassil - Latest Release

Published by github-actions[bot] 3 months ago

  • Loosen unicode-rbnf version
hassil -

Published by github-actions[bot] 4 months ago

What’s Changed

  • #148 - Cache number words (@synesthesiam)
  • #144 - Enhanced template sampling (@synesthesiam)
  • #137 - Added apostrophe (U+2019) to punctuation (@tetele)

⬆️ Dependencies

  • #147 - Bump tox from 4.15.1 to 4.16.0 (@dependabot)
  • #145 - Bump pylint from 3.2.3 to 3.2.5 (@dependabot)
  • #146 - Bump mypy from 1.10.0 to 1.10.1 (@dependabot)
  • #142 - Bump flake8 from 7.0.0 to 7.1.0 (@dependabot)
  • #141 - Bump actions/checkout from 4.1.6 to 4.1.7 (@dependabot)
  • #139 - Bump pylint from 3.2.2 to 3.2.3 (@dependabot)
  • #140 - Bump tox from 4.15.0 to 4.15.1 (@dependabot)
  • #138 - Bump pytest from 8.2.1 to 8.2.2 (@dependabot)
  • #136 - Bump pytest from 8.2.0 to 8.2.1 (@dependabot)
  • #135 - Bump pylint from 3.1.0 to 3.2.2 (@dependabot)
  • #134 - Bump actions/checkout from 4.1.4 to 4.1.6 (@dependabot)
hassil -

Published by github-actions[bot] 5 months ago

What’s Changed

  • #125 - Initialize wildcard_text if wildcard is not None (@sorgfresser)
  • #111 - Add range scale (@synesthesiam)
  • #110 - Migrate scripts to Python (@synesthesiam)

⬆️ Dependencies

  • #131 - Bump pytest from 8.1.1 to 8.2.0 (@dependabot)
  • #129 - Bump black from 24.4.0 to 24.4.2 (@dependabot)
  • #130 - Bump mypy from 1.9.0 to 1.10.0 (@dependabot)
  • #132 - Bump tox from 4.14.2 to 4.15.0 (@dependabot)
  • #128 - Bump actions/checkout from 4.1.3 to 4.1.4 (@dependabot)
  • #127 - Bump actions/checkout from 4.1.2 to 4.1.3 (@dependabot)
  • #126 - Bump black from 24.3.0 to 24.4.0 (@dependabot)
  • #124 - Bump tox from 4.14.1 to 4.14.2 (@dependabot)
  • #123 - Bump black from 24.2.0 to 24.3.0 (@dependabot)
  • #122 - Bump actions/checkout from 4.1.1 to 4.1.2 (@dependabot)
  • #120 - Bump tox from 4.13.0 to 4.14.1 (@dependabot)
  • #119 - Bump pytest from 8.0.1 to 8.1.1 (@dependabot)
  • #121 - Bump mypy from 1.8.0 to 1.9.0 (@dependabot)
  • #112 - Bump pytest from 8.0.0 to 8.0.1 (@dependabot)
  • #113 - Bump tox from 4.12.1 to 4.13.0 (@dependabot)
  • #114 - Bump black from 24.1.1 to 24.2.0 (@dependabot)
  • #109 - Bump unicode-rbnf from 1.0.0 to 1.1.0 (@dependabot)
hassil -

Published by synesthesiam 9 months ago

  • Allow context values to be dicts
hassil -

Published by synesthesiam 9 months ago

https://github.com/home-assistant/hassil/pull/103 - Add sentence metadata (@synesthesiam)
https://github.com/home-assistant/hassil/pull/100 - Add support for text slot metadata (@jackwilsdon)

hassil - 1.5.3

Published by synesthesiam 9 months ago

  • Restrict unmatched entities to contiguous blocks of non-literal text
  • Automatically use intents language for number words if supported
hassil -

Published by github-actions[bot] 10 months ago

What’s Changed

  • #94 - Local slot lists (@tetele)
  • Add matched sentence template and text chunk count to result
  • Fix text for unmatched entities

⬆️ Dependencies

  • #93 - Bump pytest from 7.4.3 to 7.4.4 (@dependabot)
  • #90 - Bump black from 23.12.0 to 23.12.1 (@dependabot)
  • #91 - Bump mypy from 1.7.1 to 1.8.0 (@dependabot)
  • #88 - Bump black from 23.11.0 to 23.12.0 (@dependabot)
  • #89 - Bump pylint from 3.0.2 to 3.0.3 (@dependabot)
  • #86 - Bump actions/setup-python from 4 to 5 (@dependabot)
  • #85 - Bump mypy from 1.7.0 to 1.7.1 (@dependabot)
hassil -

Published by synesthesiam 11 months ago

  • Expand requires_context to allow copying value to a slot
hassil -

Published by synesthesiam 11 months ago

hassil - Using original text during sampling

Published by synesthesiam over 1 year ago

When sampling possible strings from a template like (A | B), hassil would previously produce: a and b (normalized). It will now produce the original strings with whitespace: A and B.

hassil - No skipping whitespace

Published by synesthesiam over 1 year ago

Bugfix to not allow skipping whitespace while parsing under certain conditions.

hassil - Version 1.0.0

Published by synesthesiam over 1 year ago

Remove slow ANTLR parser and use a custom one (~8-10x faster).

Breaking Changes

  • Whitespace is now significant around the | character. Previously, light(s | ing) would match both "lights" and "lighting", but now it will match "lights" and "light ing"
  • Only punctuation is skipped automatically, instead of all "non-word" characters (regex \W). Templates must now include % and ° explicitly. The current set of punctuation characters is .。,,?¿?!!;;::
  • Template parsing is more strict, so unmatched ( or ] characters will cause parsing errors

New Features

Intents YAML has a new settings block:

language: "..."
settings:
  ignore_whitespace: false

The only option is ignore_whitespace, which is intended for language families like zh (Chinese) that may be written without spaces. The default value is False.

Other Changes

  • The ANTLR runtime is no longer needed as a dependency
hassil - Correct whitespace in sampler

Published by synesthesiam almost 2 years ago

hassil - Initial release

Published by synesthesiam almost 2 years ago

Package Rankings
Top 5.63% on Pypi.org
Related Projects