Skip to content
Snippets Groups Projects
Commit d4cca998 authored by pabvald's avatar pabvald
Browse files

Scripts to download pre-trained vectors added

parent a1783e15
No related branches found
No related tags found
No related merge requests found
wget -nc https://dl.fbaipublicfiles.com/fasttext/vectors-english/crawl-300d-2M.vec.zip
unzip crawl-300d-2M.vec.zip
rm -fr crawl-300d-2M.vec.zip
\ No newline at end of file
from gensim.scripts.glove2word2vec import glove2word2vec
if __name__ == '__main__':
_ = glove2word2vec('./glove.840B.300d.txt', './glove.840B.300d.w2v.txt')
\ No newline at end of file
wget -nc http://nlp.stanford.edu/data/glove.840B.300d.zip
unzip glove.840B.300d.zip
rm -fr glove.840B.300d.zip
\ No newline at end of file
wget -c "https://s3.amazonaws.com/dl4j-distribution/GoogleNews-vectors-negative300.bin.gz"
zcat GoogleNews-vectors-negative300.bin.gz > GoogleNews-vectors-negative300.bin
\ No newline at end of file
......@@ -24,7 +24,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
......@@ -46,7 +46,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
......@@ -64,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment