1
1
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:
Louistiti 2019-05-18 19:28:50 +08:00
parent 815dbc9e2e
commit fa6a5a43a6

View File

@ -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)
}