osanseviero commited on
Commit
b2fee8a
1 Parent(s): 99cab0d

Add initial glove model

Browse files
.gitattributes CHANGED
@@ -4,6 +4,7 @@
4
  *.h5 filter=lfs diff=lfs merge=lfs -text
5
  *.tflite filter=lfs diff=lfs merge=lfs -text
6
  *.tar.gz filter=lfs diff=lfs merge=lfs -text
 
7
  *.ot filter=lfs diff=lfs merge=lfs -text
8
  *.onnx filter=lfs diff=lfs merge=lfs -text
9
  *.arrow filter=lfs diff=lfs merge=lfs -text
 
4
  *.h5 filter=lfs diff=lfs merge=lfs -text
5
  *.tflite filter=lfs diff=lfs merge=lfs -text
6
  *.tar.gz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
  *.ot filter=lfs diff=lfs merge=lfs -text
9
  *.onnx filter=lfs diff=lfs merge=lfs -text
10
  *.arrow filter=lfs diff=lfs merge=lfs -text
__init__.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from gensim.models import KeyedVectors
3
+ from gensim.downloader import base_dir
4
+
5
+
6
+ def load_data():
7
+ path = os.path.join(base_dir, 'glove-twitter-25', 'glove-twitter-25.gz')
8
+ model = KeyedVectors.load_word2vec_format(path)
9
+ return model
__pycache__/__init__.cpython-39.pyc ADDED
Binary file (492 Bytes). View file
 
glove-twitter-25.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63877d71151688baf6f31d5437374f637f737a5e100e12150a5bd61a9f273c3f
3
+ size 109885004