-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
OS: ubuntu 16.04 (Docker)
Reproduction instructions
I install sensegram:
git clone https://github.com/tudarmstadt-lt/sensegram.git
make
cd sensegram
pip3 install -r requirements.txt
python3 -m spacy download en
is fine.
Then install faiss like in Makefile:
apt-get update
apt-get install swig libopenblas-dev python-dev gcc g++ python3-pip unzip
rm -rf faiss
git clone https://github.com/facebookresearch/faiss.git
cd faiss
./configure
make -j$(nproc)
apt install curl
make test
make py
Finished - ok, but with little warning: "unused variable"
https://pastebin.com/5qHG7Ja7
then i run train-wikipedia-sample
cd ..
wget http://panchenko.me/data/joint/corpora/wiki.txt.gz -P model
bash train.sh model/wiki.txt.gz
error:
2018-08-23 16:17:00,775 : INFO : loading projection weights from model/wiki.txt.gz.cbow1-size100-window5-iter3-mincount10-bigramsFalse.word_vectors
2018-08-23 16:17:25,271 : INFO : loaded (123754, 100) matrix from model/wiki.txt.gz.cbow1-size100-window5-iter3-mincount10-bigramsFalse.word_vectors
2018-08-23 16:17:25,271 : INFO : precomputing L2-norms of word weight vectors
Traceback (most recent call last):
File "train.py", line 114, in <module>
main()
File "train.py", line 82, in main
compute_graph_of_related_words(vectors_fpath, neighbours_fpath, neighbors=args.N)
File "/usr/software/sensegram/word_graph.py", line 10, in compute_graph_of_related_words
index, w2v = build_vector_index(vectors_fpath)
File "/usr/software/sensegram/word_graph.py", line 18, in build_vector_index
index = faiss.IndexFlatIP(w2v.vector_size)
AttributeError: module 'faiss' has no attribute 'IndexFlatIP'
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels