Debian Codegraph @

CHANGELOG.md

raw
1 # Changelog
2
3 ## 3.12.1
4
5 - Treat an apostrophe as ending a word, so elided articles match when they attach directly to the next word: "nell'ingresso" (it), "l'entrée" (fr), "l'aigua" (ca) ([#281](https://github.com/OHF-Voice/hassil/pull/281))
6 - Sentence templates put a literal space after the article, which previously made the spaced form the only one that matched ([OHF-Voice/intents#4183](https://github.com/OHF-Voice/intents/issues/4183))
7 - Normalize text before removing punctuation when matching, so a typographic apostrophe at the end of a word ("nell’ ingresso") folds to the ASCII form templates use instead of being stripped ([#282](https://github.com/OHF-Voice/hassil/pull/282))
8 - Strip em/en dashes, horizontal bars, and ellipses from the start/end of words and input text, so a transcript like "we are going to bed—" still matches ([home-assistant/core#181789](https://github.com/home-assistant/core/issues/181789))
9 - The ASCII hyphen and minus sign are unaffected: they appear inside words and in front of negative numbers
10
11 ## 3.12.0
12
13 - Replace the regex sentence pre-filter with a filter on the literal text a template requires
14 - Sound: only skips templates that provably cannot match, so it needs no "nothing matched, try everything" fallback and works with `allow_unmatched_entities`
15 - The old filter could drop templates that *would* have matched (inputs using `-`/`_`, or a skip word that is part of a template), which is why several languages disabled it
16 - `filter_with_regex` is now parsed but ignored, and `Sentence.compile` is no longer used
17 - Index `TextSlotList` values in a prefix trie so matching no longer scales with the number of values
18 - Skip the break-words fallback when the text contains no `-` or `_`
19 - Report `text_span` in original text coordinates instead of the punctuation/skip-word-stripped text used for matching, and stop including a wildcard's trailing whitespace
20 - Ignore `TextSlotList` values with empty input text, which previously matched at any position and produced an entity with no text
21 - Fix multi-digit numbers being truncated when a range list follows an open wildcard (`INTEGER_ANYWHERE` only matched one digit)
22 - Fix an open wildcard accumulating text from other candidates when a range list matched several number words
23 - Fix `words_match` never being set, which reported a matched number word as an unmatched entity
24 - `Expression` is no longer an `ABC`, which makes `isinstance` dispatch in the matcher considerably faster
25
26 ## 3.11.0
27
28 - Only strip whitespace between CJK characters when `ignore_whitespace` is set, preserving spaces in non-CJK wildcard captures such as `Taylor Swift` ([#276](https://github.com/OHF-Voice/hassil/issues/276))
29 - Break ties in `recognize_best` with intent name
30
31 ## 3.10.0
32
33 - Add `filter_intents` to scope an `Intents` object to available domains/supported intents
34
35 ## 3.9.0
36
37 - Remove ngram fuzzy matcher
38
39 ## 3.8.2
40
41 - Fix text span with range numbers
42
43 ## 3.8.1
44
45 - Fix trailing initialisms
46
47 ## 3.8.0
48
49 - Cache regex in match utils
50 - Break ties in `recognize_best` in favor of list values versus wildcards
51
52 ## 3.7.0
53
54 - Try text without skip words removed first
55
56 ## 3.6.0
57
58 - Add inline range lists (`{start..stop,[step]:slot_name}`)
59 - Don't remove skip words from start if sentence starts with a wildcard
60 - Don't remove skip words from end if sentence ends with a wildcard
61 - Don't remove skip words at all if the entire sentence is a wildcard
62
63 ## 3.5.0
64
65 - Add `text_span` to matched entities so they can be mapped back to the original input text
66 - Bump dev dependencies
67 - Add intent name to initial FST arcs
68
69 ## 3.4.1
70
71 - Ignore case when matching number words
72
73 ## 3.4.0
74
75 - Filter intent slot combinations using context area
76 - Fall back to language family for number words
77
78 ## 3.3.0
79
80 - Add context area to fuzzy matcher
81
82 ## 3.2.1
83
84 - Normalize apostrophe `’` to `'`
85
86 ## 3.2.0
87
88 - Add capture syntax (`{list_name:@capture_name}` and `{@list_name}`)
89 - Only available in responses, not entities/slots
90 - `{@list_name}` is the same as `{list_name:@list_name}`
91 - Close sqlite3 connection in fuzzy matching
92
93 ## 3.1.0
94
95 - Add fuzzy n-gram matcher (beta)
96 - Add word boundary option to trie
97
98 ## 3.0.1
99
100 - Use faster permutation iteration
101
102 ## 3.0.0
103
104 - Rename `Sequence` to `Group`
105 - Remove `SequenceType` and instead of types for each `Group`:
106 - `Sequence` for `(a b c)`
107 - `Alternative` for `(a|b|c)`
108 - `Permutation` for `(a;b;c)`
109 - `Sentence` now contains an `expression` field with the parsed expression
110 - `Permutation` is represented explicitly instead of being expanded internally into an alternative
111 - Everything used by downstream projects has been moved into a top-level import (`from hassil import Intents`). The internal structure of of hassil (e.g., `hassil.intents` or `hassil.util`) should be expected to change.
112 - Drop support for Python 3.8 (EOL October 7, 2024)
113
114 ## 2.2.3
115
116 - Fix behavior with wildcards inside and outside words
117
118 ## 2.2.2
119
120 - Allow "," as a decimal separator for fractional ranges
121
122 ## 2.2.1
123
124 - Allow list values with "in" but no "out"
125
126 ## 2.2.0
127
128 - Add "fractions" to number ranges with halves and tenths
129 - Don't remove punctuation within words in `text_clean` (e.g., "2.5")
130
131 ## 2.1.1
132
133 - Allow number ranges to have the same start/stop (single number)
134
135 ## 2.1.0
136
137 - Upgrade to `unicode-rbnf` 2.2
138 - Transition to pyproject.toml
139
140 ## 2.0.4
141
142 - Trie values are accumulated on `insert` instead of being overwritten
143
144 ## 2.0.3
145
146 - Make trie more restrictive (`two` will not match `t|wo`)
147
148 ## 2.0.2
149
150 - Require `unicode-rbnf>=2.1` which includes important bugfixes
151
152 ## 2.0.1
153
154 - Count stripped text in `text_chunks_matched`
155
156 ## 2.0.0
157
158 - Allow wildcards to be followed by expansion rules and lists
159 - Use regular expressions to filter sentence templates
160 - Add `filter_with_regex` to intent settings and intent data (`false` disables regex filtering)
161 - Filter text slot list values by required/excluded context during matching
162 - Use a trie to filter range slot list values based on remaining text to be matched
163 - Add `required_keywords` section to intent data to skip sentences without specific keywords
164 - Preserve case during matching
165 - Strip punctuation before text processing
166 - Remove extraneous whitespace from the end of wildcards
167 - Refactor string matching code into `string_matcher.py`
168
169 ## 1.8.0
170
171 - Bump `unicode-rbnf` to 2.0.0
172 - Use multiple texts for numbers, e.g. for German 1 `ein`, `eins`, etc.
173 - Remove `words_ruleset` for ranges
174
175 ## 1.7.4
176
177 - Loosen `unicode-rbnf` version
178
179 ## 1.7.3
180
181 - Cache number words
182
183 ## 1.7.2
184
185 - Add apostrophe to punctuation list
186
187 ## 1.7.1
188
189 - Fix `is_wildcard` in match entities
190 - Fix `wildcard_text` initialization
191 - Bump pylint to 3.1.0
192
193 ## 1.7.0
194
195 - Add multiplier to range
196
197 ## 1.6.1
198
199 - Allow context values to be dicts
200
201 ## 1.6.0
202
203 - Add metadata to sentences
204 - Add metadata to list items
205
206 ## 1.5.3
207
208 - Restrict unmatched entities to contiguous blocks of non-literal text
209 - Automatically use intents language for number words if supported
210
211 ## 1.5.2
212
213 - Add local slots (under data sentences)
214 - Add literal text chunk count and matched sentence template to results
215
216 ## 1.5.1
217
218 - Expand `requires_context` to allow copying value to a slot
219
220 ## 1.5.0
221
222 - Add fuzzy matching using edit distance
223
224 ## 1.4.0
225
226 - Sort wildcard sentences so they are processed by most literal text chunks first
227
228 ## 1.3.0
229
230 - Add number to word generation using [unicode-rbnf](https://github.com/rhasspy/unicode-rbnf) for range lists
231
232 ## 1.2.5
233
234 - Fix degenerate wildcard case