Skip to content

Commit

Permalink
fix(server): NER trim entity on after conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
louistiti committed May 18, 2019
1 parent 815dbc9 commit fa6a5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/core/ner.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fa6a5a4

Please sign in to comment.