Published
Edited
Jun 22, 2021
Insert cell
Insert cell
Insert cell
nlp = winkNLP(winkEngLiteWebModel);
Insert cell
Insert cell
doc = {
const text = 'Hello World🌎! How are you?';
const doc = nlp.readDoc( text );
return doc;
}
Insert cell
Insert cell
doc.out()
Insert cell
doc.sentences().out()
Insert cell
doc.entities().out( its.detail )
Insert cell
doc.tokens().out()
Insert cell
// ERROR: Output does not transform using its.type and as.freqTable
doc.tokens().out( its.type, as.freqTable )
Insert cell
// See console
doc.printTokens()
Insert cell
Insert cell
winkNLP = (await import('https://cdn.skypack.dev/wink-nlp')).default
Insert cell
winkEngLiteWebModel = (await import('https://cdn.skypack.dev/wink-eng-lite-web-model')).default
Insert cell
its = (await import('https://cdn.skypack.dev/wink-nlp/src/its.js')).default
Insert cell
as = (await import('https://cdn.skypack.dev/wink-nlp/src/as.js')).default
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more