hassil

Intent parsing for Home Assistant

APACHE-2.0 License

Downloads
28.4K
Stars
85
Committers
10

Bot releases are hidden (Show)

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 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