mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
feat: add determinisic slot filling (keyword and patter lookup strategies)
This commit is contained in:
@@ -36,6 +36,7 @@ const getDefaultNlpMetadata = (
|
||||
if (nlpEntity?.lookups.includes(LookupStrategy.pattern)) {
|
||||
return {
|
||||
pattern: "//",
|
||||
wordBoundary: true,
|
||||
removeSpaces: false,
|
||||
toLowerCase: false,
|
||||
stripDiacritics: false,
|
||||
@@ -160,6 +161,18 @@ export const NlpValueForm: FC<ComponentFormProps<INlpValue, INlpEntity>> = ({
|
||||
flags={["i"]}
|
||||
/>
|
||||
</ContentItem>
|
||||
<ContentItem>
|
||||
<Controller
|
||||
name="metadata.wordBoundary"
|
||||
control={control}
|
||||
render={({ field }) => (
|
||||
<FormControlLabel
|
||||
control={<Switch {...field} checked={field.value} />}
|
||||
label={t("label.word_boundary")}
|
||||
/>
|
||||
)}
|
||||
/>
|
||||
</ContentItem>
|
||||
<ContentItem>
|
||||
<Controller
|
||||
name="metadata.removeSpaces"
|
||||
|
||||
Reference in New Issue
Block a user