24 lines
398 B
TypeScript
24 lines
398 B
TypeScript
// import nlp from '../../src/three.js'
|
|
import nlp from '../../types/two'
|
|
|
|
const doc = nlp('okay cool')
|
|
|
|
// ### Pre-tagger
|
|
doc.compute('preTagger')
|
|
doc.compute('root')
|
|
doc.compute('penn')
|
|
|
|
// ### Contraction-two
|
|
doc.compute('contractionTwo')
|
|
doc.contractions()
|
|
doc.contractions().expand()
|
|
doc.contract()
|
|
|
|
// ### Post-tagger
|
|
doc.compute('postTagger')
|
|
doc.confidence()
|
|
|
|
|
|
// ### Swap
|
|
doc.swap('', '')
|