-
Notifications
You must be signed in to change notification settings - Fork 666
Expand file tree
/
Copy pathscratch.js
More file actions
50 lines (43 loc) · 1.04 KB
/
scratch.js
File metadata and controls
50 lines (43 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import nlp from './src/three.js'
// import plg from './plugins/dates/src/plugin.js'
// import plg from './plugins/_experiments/cmd-k/src/plugin.js'
// nlp.plugin(plg)
let txt = 'toes'
// txt = 'rooms'
// txt = 'students'
// txt = 'trees'
// txt = 'eyed'
// txt = 'sized'
// txt = 'faced'
// txt = 'admitted'
// txt = 'substances'
// txt = 'crocodiles'
// txt = 'affairs'
// txt = 'buddies'
// txt = 'residents'
// txt = 'girls'
// txt = 'hills'
// txt = 'commitments'
// txt = 'units'
// txt = 'banks'
// txt = 'toys'
// txt = 'lights'
// txt = 'grounds'
// txt = 'albertans'
// txt = 'towers'
// txt = `i sent the documents up the hill`
// txt = `he would up stage his friend`
// txt = `he couldn't off gas`
// txt = `he got up over the hill`
// txt = 'piled up over'
// text = ``
// let doc = nlp(txt).debug()
// doc.compute('root')
// console.log(doc.text('root'))
// Underscore example
let text = `
To the window, to the wall below.
_________________________________________________`;
let doc = nlp(text);
console.log(doc.debug());
// console.log(doc.docs)