letdoc=nlp('i dug up the solution, while digging up treasure.')
doc.compute('root')
returndoc.swap('dig up','find').text()
}
{
letwords=['run','walk','splin']
// pre-compile them into a trie datastructure
lettrie=nlp.compile(words)
letdoc=nlp(`Well, I'm running down the road tryin' to loosen my load`)
doc.compute('root')
// now this is super-efficient
letm=doc.lookup(words,{form:'root'})
returnm.out('array')
}
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.