mirror of
https://github.com/leon-ai/leon.git
synced 2024-09-19 05:47:17 +03:00
fix(server): NER trim entity on after conditions
This commit is contained in:
parent
815dbc9e2e
commit
fa6a5a43a6
@ -102,7 +102,7 @@ class Ner {
|
||||
// e.g. list.addBetweenCondition('en', 'create a', 'list')
|
||||
e[conditionMethod](lang, condition.from, condition.to)
|
||||
} else if (condition.type.indexOf('after') !== -1) {
|
||||
console.log('eee', e[conditionMethod](lang, condition.from))
|
||||
e[conditionMethod](lang, condition.from)
|
||||
} else if (condition.type.indexOf('before') !== -1) {
|
||||
e[conditionMethod](lang, condition.to)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user