This codes implement Poincar'e Embedding introduced in the following paper:
cd poincare-embedding
mkdir work & cd work
cmake ..
make
We assume that you are in work directory
cd poincare-embedding
mkdir work & cd work
You can create WordNet noun hypernym pairs as follows
python ../scripts/create_wordnet_noun_hierarchy.py ./wordnet_noun_hypernyms.tsv
and mammal subtree is created by
python ../scripts/create_mammal_subtree.py ./mammal_subtree.tsv
./poincare_embedding ./mammal_subtree.tsv ./embeddings.tsv -d 2 -t 8 -e 1000 -l 0.1 -L 0.0001 -n 20
python ../scripts/plot_mammal_subtree.py ./embeddings.tsv