diff --git a/CHANGELOG.md b/CHANGELOG.md index ab8e908898..6bc4acd608 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/gensim/utils.py b/gensim/utils.py index 9a571d5d25..a2557f07a2 100644 --- a/gensim/utils.py +++ b/gensim/utils.py @@ -10,7 +10,7 @@ from __future__ import with_statement -import logging +import logging, warnings logger = logging.getLogger(__name__) @@ -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): @@ -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