Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
removing python model warning for deprecation
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Celebio authored and facebook-github-bot committed May 27, 2020
1 parent c95dd78 commit 9ef22d9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions python/fasttext_module/fasttext/FastText.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
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
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 9ef22d9

Please sign in to comment.