multi-word lex in v7+

node v6.17.1
version: master
endpointsharetweet
let nlp = require('compromise'); let lexicon={'ser waymar royce': 'TARGETED_GUY'} nlp('Ser Waymar Royce asked cooly.', lexicon).match('#TARGETED_GUY').out()
Loading…

no comments

    sign in to comment