Published
Edited
Mar 24, 2022
1 star
Insert cell
Insert cell
Insert cell
output = {
let doc = nlp(`and if we could all be more like little Ruttiger...`, {'little ruttiger': 'NickName'})
return doc.export()
}
Insert cell
Insert cell
{
let doc2 = nlp.import(output)
return doc2.match('#NickName+').text()
}
Insert cell
Insert cell
{
let doc = nlp('the long and winding road')
let output = doc.export()
output.version = nlp.version
return output
}
Insert cell
Insert cell
nlp = {
let nlp = await require('compromise@latest')
let plugin = await require('compromise-export')
nlp.extend(plugin)
return nlp
}
Insert cell
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