-
Notifications
You must be signed in to change notification settings - Fork 10
/
README
executable file
·43 lines (31 loc) · 1.01 KB
/
README
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
=====================================================================
WordNet Blast
=====================================================================
In memory access to the wordnet onthology.
DEPENDENCIES:
boost 1.46
wordnet-sense-index
colordiff (for wntest)
INSTALL:
cmake CMakeLists.txt
make
TESTS: (Beta)
make check
USAGE:
#include "wordnet.hh"
#include "wnb/nltk_similarity.hh"
using namespace std;
using namespace wnb;
int main()
{
wordnet wn(PATH_TO_WORDNET);
vector<synset> synsets1 = wn.get_synsets("cat");
vector<synset> synsets2 = wn.get_synsets("dog");
nltk_similarity similarity(wn);
float d = similarity(synsets1[0], synsets2[0], 6);
}
BUGS:
- Word Morphing is sometimes incorrect.
REFERENCE:
George A. Miller (1995). WordNet: A Lexical Database for English.
Communications of the ACM Vol. 38, No. 11: 39-41.