Published
Edited
Mar 24, 2022
1 fork
2 stars
Insert cell
Insert cell
{
//build a trie from our lookup terms
let trie = nlp.compile(['four five','two three', 'onety foo', 'flippity four'])

//create a document
let doc = nlp('one two three four five. no here results.')
//scan it with our trie
return doc.lookup(trie).out('array')
}
Insert cell
Insert cell
{
//build a trie from our lookup terms
let trie = nlp.compile([
'two three',
'three four five',
'one',
'eleventy',
])

//create a document
let doc = nlp('one two three four five. no here results.')
//scan it with our trie
return doc.lookup(trie).out('array')
}
Insert cell
Insert cell
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