asto transform the output I don't get any changes ie.
doc.tokens().out( its.type, as.freqTable ) // -> [ 'Hello', 'World', '🌎', '!', 'How', 'are', 'you', '?' ]
functionsand within the
.out()api there were many manipulations on these
functions AND on browser these were failing. Now you should not use require to obtain the
ashelpers; instead use winkNLP instance to acquire them. Please see https://observablehq.com/@winkjs/testbed-for-winknlp for exact details.
NOUNI'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
It was only recently that I discovered wink nlp and I could not help but succumb to getting awestruck. I have also realized that the entire ecosystem uses no external dependencies, which has made it all the more interesting.
I am extremely interested in contributing and have been studying the code. I was curious to know to know how the NER works, for a start. I have been reading the code for the gazetter based NER but would appreciate a walkthrough for clarity, as it would greatly aid to my comprehension of the code.
const winkNLP = require( 'wink-nlp' ); const its = require( 'wink-nlp/src/its.js' ); const model = require( 'wink-eng-lite-web-model' ); const nlp = winkNLP( model ); const text = 'My mother had a beautiful singing voice.'; const doc = nlp.readDoc( text ); // Print tokens. console.log( doc.tokens().out() ); // Print each token's stem. console.log( doc.tokens().out( its.stem ) );