Skip to content

Commit

Permalink
Change log message to warning as suggested in #828 (#884)
Browse files Browse the repository at this point in the history
* Changed log message to warning as suggested in #828
* Updated changelog
  • Loading branch information
rhnvrm authored and tmylk committed Sep 28, 2016
1 parent 9388ac4 commit 842151d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Changes
[#879](https://github.com/RaRe-Technologies/gensim/pull/879))
- bigram construction can now support multiple bigrams within one sentence
* Fixed issue #838, RuntimeWarning: overflow encountered in exp (@markroxor, [#895](https://github.com/RaRe-Technologies/gensim/pull/895))
* Changed some log messages to warnings as suggested in issue #828. (@rhnvrm, [#884](https://github.com/RaRe-Technologies/gensim/pull/884))


0.13.2, 2016-08-19

Expand Down
6 changes: 3 additions & 3 deletions gensim/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from __future__ import with_statement

import logging
import logging, warnings

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -836,7 +836,7 @@ def run(self):


if os.name == 'nt':
logger.info("detected Windows; aliasing chunkize to chunkize_serial")
warnings.warn("detected Windows; aliasing chunkize to chunkize_serial")

def chunkize(corpus, chunksize, maxsize=0, as_numpy=False):
for chunk in chunkize_serial(corpus, chunksize, as_numpy=as_numpy):
Expand Down Expand Up @@ -1011,7 +1011,7 @@ def has_pattern():
from pattern.en import parse
pattern = True
except ImportError:
logger.info("Pattern library is not installed, lemmatization won't be available.")
warnings.warn("Pattern library is not installed, lemmatization won't be available.")
return pattern


Expand Down

0 comments on commit 842151d

Please sign in to comment.