fse
Advanced tools
| Metadata-Version: 1.0 | ||
| Name: fse | ||
| Version: 0.1.0 | ||
| Version: 0.1.1 | ||
| Summary: Fast Sentence Embeddings for Gensim | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/oborchers/Fast_Sentence_Embeddings |
+5
-4
@@ -9,3 +9,4 @@ #!/usr/bin/env python | ||
| from gensim.utils import any2unicode, open as s_open | ||
| from gensim.utils import any2unicode | ||
| from smart_open import open | ||
@@ -158,3 +159,3 @@ from pathlib import Path | ||
| """ Builds an offset table to index the file """ | ||
| with s_open(self.path, "rb") as f: | ||
| with open(self.path, "rb") as f: | ||
| offset = f.tell() | ||
@@ -183,3 +184,3 @@ for line in f: | ||
| with s_open(self.path, "rb") as f: | ||
| with open(self.path, "rb") as f: | ||
| f.seek(self.line_offset[i]) | ||
@@ -199,4 +200,4 @@ output = f.readline() | ||
| """ | ||
| with s_open(self.path, "rb") as f: | ||
| with open(self.path, "rb") as f: | ||
| for i, line in enumerate(f): | ||
| yield IndexedSentence(any2unicode(line).split(), i) |
+1
-1
| Metadata-Version: 1.0 | ||
| Name: fse | ||
| Version: 0.1.0 | ||
| Version: 0.1.1 | ||
| Summary: Fast Sentence Embeddings for Gensim | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/oborchers/Fast_Sentence_Embeddings |
+1
-1
@@ -86,3 +86,3 @@ #!/usr/bin/env python | ||
| name='fse', | ||
| version='0.1.0', | ||
| version='0.1.1', | ||
| description='Fast Sentence Embeddings for Gensim', | ||
@@ -89,0 +89,0 @@ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
630944
02764
0.04%