evaluate
evaluate copied to clipboard
How to disable NLTK download information output?
When I use "metoer" evlauator by:
import evaluate
meteor = evaluate.load('meteor')
meteor_score = meteor.compute(predictions=predictions, references=reference)
Every time it will output the nltk download information as following. Is there any way supported by evaluate lib to disable such?
Hi!
This thread answers your issue: https://stackoverflow.com/questions/47614999/how-to-stop-nltk-from-outputting-to-terminal-when-downloading-data.
Feel free to set quiet=True in the script's nltk.download calls (maybe the info about the extra NLTK packages downloaded in _download_and_prepare can be emitted using the evaluate's logger) and open a PR.