This repository has been archived by the owner on May 6, 2022. It is now read-only.
v5.2.0
space-pope
released this
22 Apr 19:15
·
213 commits
to master
since this release
Features
- Return unknown slots as raw values
- If the NLU model tags a slot not associated with the predicted intent, that slot's value will be returned as a String in the
NLUResult
's slot map instead of causing an error.
- If the NLU model tags a slot not associated with the predicted intent, that slot's value will be returned as a String in the
- Support new slot features
- Newer models include intent-level implicit slots and a
capture_name
field that changes the slot's return name; these are now supported by the client library.
- Newer models include intent-level implicit slots and a
Fixes
- Allow slot tags to be discontinuous
- Separate spans of "b_
slot_name
" tags will now be concatenated instead of dropping all tokens but the last one
- Separate spans of "b_
- Trim punctuation for slot value extraction
- Slots recognized at the end of an input string that contains punctuation will no longer cause an error. As a consequence, both leading and trailing punctuation are removed from the slot value before parsing, so such punctuation is invalid in training data for the slot values.