0.1.4 • Published 6 years ago

wordnet-adverbdatamap.nogloss v0.1.4

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

wordnet-adverbdatamap.nogloss

NPM

Get adverb data of WordNet as map (without gloss).

Use wordnet-adverbdatamap, if gloss is needed. Use wordnet-adverbdatamap.nogloss.min, if minification is needed.

const adverbDataMap = require('wordnet-adverbdatamap.nogloss');
// adverbDataMap [Map]
// {synset_offset => {lex_filenum, ss_type, w_cnt, words, p_cnt, pointers}}
// {words: {word, lex_id}}
// {pointers: {pointer_symbol, synset_offset, pos, source, target}}

adverbDataMap.get(1740);
// { lex_filenum: 2,
//   ss_type: 'r',
//   w_cnt: 2,
//   words:
//    [ { word: 'a_cappella', lex_id: 0 },
//      { word: 'a_capella', lex_id: 0 } ],
//   p_cnt: 2,
//   pointers:
//    [ { pointer_symbol: '\\',
//        synset_offset: 2260096,
//        pos: 'a',
//        source: 2,
//        target: 2 },
//      { pointer_symbol: '\\',
//        synset_offset: 2260096,
//        pos: 'a',
//        source: 1,
//        target: 1 } ] }
adverbDataMap.get(1885);
// { lex_filenum: 2,
//   ss_type: 'r',
//   w_cnt: 3,
//   words:
//    [ { word: 'AD', lex_id: 0 },
//      { word: 'A.D.', lex_id: 0 },
//      { word: 'anno_Domini', lex_id: 0 } ],
//   p_cnt: 0,
//   pointers: [] }
adverbDataMap.get(520033);
// { lex_filenum: 2,
//   ss_type: 'r',
//   w_cnt: 1,
//   words: [ { word: 'voluminously', lex_id: 0 } ],
//   p_cnt: 4,
//   pointers:
//    [ { pointer_symbol: '+',
//        synset_offset: 14877,
//        pos: 'a',
//        source: 1,
//        target: 2 },
//      { pointer_symbol: '+',
//        synset_offset: 1393834,
//        pos: 'a',
//        source: 1,
//        target: 1 },
//      { pointer_symbol: '\\',
//        synset_offset: 14877,
//        pos: 'a',
//        source: 1,
//        target: 2 },
//      { pointer_symbol: '\\',
//        synset_offset: 1393834,
//        pos: 'a',
//        source: 1,
//        target: 1 } ] }
0.1.4

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.19

6 years ago

0.0.18

6 years ago

0.0.17

6 years ago

0.0.16

6 years ago

0.0.15

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago