const nlp = wink_nlp_1.default(wink_eng_lite_model_1.default);
^
TypeError: wink_nlp_1.default is not a function
at Object.<anonymous> (/Volumes/DATA/Projects/INhouse/backend/dist/parser/articles/article.parser.js:7:31)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
its
or as
to transform the output I don't get any changes ie. doc.tokens().out( its.type, as.freqTable ) // -> [ 'Hello', 'World', '🌎', '!', 'How', 'are', 'you', '?' ]
functions
and within the .out()
api there were many manipulations on these function
s AND on browser these were failing. Now you should not use require to obtain the its
and as
helpers; instead use winkNLP instance to acquire them. Please see https://observablehq.com/@winkjs/testbed-for-winknlp for exact details.
months
as a NOUN
I'd like to be able to retrieve how confident the model is in that labelling. I've built an example workflow here to demonstrate this idea: https://observablehq.com/@adamocarolli/winknlp-example-confidence-score-interface