Jelajahi Sumber

removing python model warning for deprecation

Summary: A warning was introduced when we merged the python modules. Users adapted their code and the warning is now more confusing than helpful.

Reviewed By: EdouardGrave

Differential Revision: D21720286

fbshipit-source-id: 8ce14901df39a034990d1f0532d28834b9aada63
Onur Çelebi 5 tahun lalu
induk
melakukan
9ef22d9fac
1 mengubah file dengan 0 tambahan dan 5 penghapusan
  1. 0 5
      python/fasttext_module/fasttext/FastText.py

+ 0 - 5
python/fasttext_module/fasttext/FastText.py

@@ -24,10 +24,6 @@ EOW = ">"
 displayed_errors = {}
 
 
-def eprint(*args, **kwargs):
-    print(*args, file=sys.stderr, **kwargs)
-
-
 class _Meter(object):
     def __init__(self, fasttext_model, meter):
         self.f = fasttext_model
@@ -437,7 +433,6 @@ def tokenize(text):
 
 def load_model(path):
     """Load a model given a filepath and return a model object."""
-    eprint("Warning : `load_model` does not return WordVectorModel or SupervisedModel any more, but a `FastText` object which is very similar.")
     return _FastText(model_path=path)