Ver Fonte

remove blank line when loading model from python

Summary: This commit fixes the issue reported on https://github.com/facebookresearch/fastText/issues/909

Reviewed By: EdouardGrave

Differential Revision: D17630124

fbshipit-source-id: 9a9120b485711647266b547c6910633f83b3155f
Onur Çelebi há 6 anos atrás
pai
commit
9f997a1c7c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      python/fasttext_module/fasttext/FastText.py

+ 1 - 1
python/fasttext_module/fasttext/FastText.py

@@ -22,7 +22,7 @@ BOW = "<"
 EOW = ">"
 
 
-def eprint(cls, *args, **kwargs):
+def eprint(*args, **kwargs):
     print(*args, file=sys.stderr, **kwargs)