wordnet-verbdatamap.nogloss.min
v0.1.4
Published
Get verb data of WordNet as map (without gloss, browserified, minified).
Downloads
43
Maintainers
Readme
wordnet-verbdatamap.nogloss.min
Get verb data of WordNet as map (without gloss, browserified, minified).
Use wordnet-verbdatamap.nogloss, if minification is not needed.
const verbDataMap = require('wordnet-verbdatamap.nogloss.min');
// verbDataMap [Map]
// {synset_offset => {lex_filenum(l), ss_type(s), w_cnt, words(w), p_cnt, pointers(p), f_cnt, frames(f)}}
// {words(w): {word(w), lex_id(l)}}
// {pointers(p): {pointer_symbol(o), synset_offset(y), pos(p), source(s), target(t)}}
// {frames(f): {f_num(f), w_num(w)}}
verbDataMap.get(1740);
// { l: 29,
// s: 'v',
// w:
// [ { w: 'breathe', l: 0 },
// { w: 'take_a_breath', l: 0 },
// { w: 'respire', l: 0 },
// { w: 'suspire', l: 3 } ],
// p:
// [ { o: '*', y: 5041, p: 'v', s: 0, t: 0 },
// { o: '*', y: 4227, p: 'v', s: 0, t: 0 },
// { o: '+', y: 3121972, p: 'a', s: 3, t: 1 },
// { o: '+', y: 832852, p: 'n', s: 3, t: 3 },
// { o: '+', y: 4087945, p: 'n', s: 3, t: 1 },
// { o: '+', y: 4257960, p: 'n', s: 1, t: 5 },
// { o: '+', y: 832852, p: 'n', s: 1, t: 1 },
// { o: '^', y: 4227, p: 'v', s: 1, t: 3 },
// { o: '^', y: 5041, p: 'v', s: 1, t: 3 },
// { o: '$', y: 2325, p: 'v', s: 0, t: 0 },
// { o: '$', y: 2573, p: 'v', s: 0, t: 0 },
// { o: '~', y: 2573, p: 'v', s: 0, t: 0 },
// { o: '~', y: 2724, p: 'v', s: 0, t: 0 },
// { o: '~', y: 2942, p: 'v', s: 0, t: 0 },
// { o: '~', y: 3826, p: 'v', s: 0, t: 0 },
// { o: '~', y: 4032, p: 'v', s: 0, t: 0 },
// { o: '~', y: 4227, p: 'v', s: 0, t: 0 },
// { o: '~', y: 5041, p: 'v', s: 0, t: 0 },
// { o: '~', y: 6697, p: 'v', s: 0, t: 0 },
// { o: '~', y: 7328, p: 'v', s: 0, t: 0 },
// { o: '~', y: 17024, p: 'v', s: 0, t: 0 } ],
// f: [ { f: 2, w: 0 }, { f: 8, w: 0 } ] }
verbDataMap.get(2325);
// { l: 29,
// s: 'v',
// w: [ { w: 'respire', l: 1 } ],
// p:
// [ { o: '$', y: 1740, p: 'v', s: 0, t: 0 },
// { o: '@', y: 2112831, p: 'v', s: 0, t: 0 },
// { o: '+', y: 3121972, p: 'a', s: 1, t: 1 },
// { o: '+', y: 832852, p: 'n', s: 1, t: 3 },
// { o: '+', y: 832472, p: 'n', s: 1, t: 1 } ],
// f: [ { f: 2, w: 0 } ] }
verbDataMap.get(2778268);
// { l: 43,
// s: 'v',
// w: [ { w: 'deflagrate', l: 0 } ],
// p:
// [ { o: '@', y: 2768426, p: 'v', s: 0, t: 0 },
// { o: '+', y: 13471590, p: 'n', s: 1, t: 1 } ],
// f: [ { f: 8, w: 0 }, { f: 11, w: 0 } ] }