Skip to content

Commit

Permalink
Switch to original fasttext package
Browse files Browse the repository at this point in the history
The official "fasttext"package has been well maintained. The "fasttextmirror" package might cause installation issues on Windows.
  • Loading branch information
XingkaiLiu authored Apr 4, 2020
1 parent 2efdf87 commit 5fc2cd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deepmatcher/data/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import nltk
import six

import fastText
import fasttext
import torch
from torchtext import data, vocab
from torchtext.utils import download_from_url
Expand Down Expand Up @@ -77,7 +77,7 @@ def cache(self, name, cache, url=None):
if not os.path.isfile(path):
raise RuntimeError('no vectors found at {}'.format(path))

self.model = fastText.load_model(path)
self.model = fasttext.load_model(path)
self.dim = len(self['a'])


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ def find_version(*file_paths):
python_requires='>=3.5',
install_requires=[
'torch>=1.0', 'tqdm', 'pyprind', 'six', 'Cython', 'torchtext', 'nltk>=3.2.5',
'fasttextmirror', 'pandas', 'dill', 'scikit-learn'
'fasttext', 'pandas', 'dill', 'scikit-learn'
])

0 comments on commit 5fc2cd4

Please sign in to comment.