Skip to content

Commit

Permalink
Remove wrong logging at import. Fix piskvorky#1706 (piskvorky#1871)
Browse files Browse the repository at this point in the history
  • Loading branch information
menshikh-iv authored and sj29-innovate committed Feb 21, 2018
1 parent 1c8a22e commit 7a75c45
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions gensim/models/doc2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,8 @@
try:
from gensim.models.doc2vec_inner import train_document_dbow, train_document_dm, train_document_dm_concat
from gensim.models.word2vec_inner import FAST_VERSION # blas-adaptation shared from word2vec
logger.info("Using FAST VERSION=%d", FAST_VERSION)

except ImportError:
logger.warning('Slow version of %s is being used', __name__)
# failed... fall back to plain numpy (20-80x slower training than the above)
FAST_VERSION = -1

Expand Down
2 changes: 0 additions & 2 deletions gensim/models/fasttext.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@
try:
from gensim.models.fasttext_inner import train_batch_sg, train_batch_cbow
from gensim.models.fasttext_inner import FAST_VERSION, MAX_WORDS_IN_BATCH
logger.info("Using FAST VERSION=%d", FAST_VERSION)

except ImportError:
# failed... fall back to plain numpy (20-80x slower training than the above)
logger.warning('Slow version of Fasttext is being used')
FAST_VERSION = -1
MAX_WORDS_IN_BATCH = 10000

Expand Down
1 change: 0 additions & 1 deletion gensim/models/word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@
from gensim.models.word2vec_inner import train_batch_sg, train_batch_cbow
from gensim.models.word2vec_inner import score_sentence_sg, score_sentence_cbow
from gensim.models.word2vec_inner import FAST_VERSION, MAX_WORDS_IN_BATCH
logger.info("Using FAST VERSION=%d", FAST_VERSION)

except ImportError:
# failed... fall back to plain numpy (20-80x slower training than the above)
Expand Down

0 comments on commit 7a75c45

Please # to comment.