letdoc=nlp('i am the very model of a modern major general')
//set the cache
doc.cache()
//console.log(doc._cache)
//add a new tag
doc.match('major general').tag('Rank')
doc.has('#Rank')//false!
// invalidate the cache
doc=doc.replace('modern','old')
returndoc.has('#Rank')//true now!
}
{
letdoc=nlp('i am the very model of a modern major general')
doc.cache()
doc.cache.set//true
letchild=doc.match('modern . general')
returnchild.cache.set//false!
}
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.