lettext='Hi I’m Troy Maclure. You may remember me from from such instructional videos as “Mothballing Your Battleship” and “Dig Your Own Grave and Save”.'
//parse the text..
letdoc=nlp(text)
//output all sentences, terms, and their metadata
returndoc.json()
}
{
letdoc=nlp(`OK, Mr. Burns, what's your first name?`)
//grab a part of it ('Mr. Burns')
letm1=doc.people()
//do a match on our match
letm2=m1.match('(simpson|burns)')
//change it..
m2.toUpperCase()
//print the original document
returndoc.text()
}
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.