Open blasco opened 4 years ago
I've checked the code and it doesn't match with the code in the latest commit of this repository. Here in github is correct, but in the version installed with pip install
I can see:
if not reliable and not self.quiet:
raise UnknownLanguage("Try passing a longer snippet of text")
else:
logger.warning("Detector is not able to detect the language reliably.")
in polyglot/detect/base.py
Here in the repository:
if not self.quiet:
if not reliable:
raise UnknownLanguage("Try passing a longer snippet of text")
else:
logger.warning("Detector is not able to detect the language reliably.")
Is there a way to update this so installing with pip results in the latest version?
You can use the code in the repo directly. Or, you can do it the hackish way for now:
from polyglot.detect.base import logger
logger.disabled = True
@robertour that should be documented
I've added the quite parameter:
Still I get this printed out:
Is there a way to disable these logs?