evaluate icon indicating copy to clipboard operation
evaluate copied to clipboard

How to disable NLTK download information output?

Open yiyualt opened this issue 2 years ago • 1 comments

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?

Screen Shot 2023-05-18 at 13 09 33

yiyualt avatar May 18 '23 04:05 yiyualt

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.

mariosasko avatar May 21 '23 17:05 mariosasko