8000 Suppress the output of nltk download logs when loading metric via evaluate · Issue #671 · huggingface/evaluate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Suppress the output of nltk download logs when loading metric via evaluate #671
Open
@shivanraptor

Description

@shivanraptor

How can the output of nltk be suppressed when loading sacrebleu via the evaluate library?

The minimal code is as follows:

import evaluate
bleu = evaluate.load("sacrebleu")

Then the output in the Jupyter Notebook is as follows:

Using the latest cached version of the module from /home/jupyter-raptor/.cache/huggingface/modules/evaluate_modules/metrics/evaluate-metric--sacrebleu/28676bf65b4f88b276df566e48e603732d0b4afd237603ebdf92acaacf5be99b (last modified on Fri Nov  8 20:44:01 2024) since it couldn't be found locally at evaluate-metric--sacrebleu, or remotely on the Hugging Face Hub.
[nltk_data] Downloading package wordnet to /home/jupyter-
[nltk_data]     raptor/nltk_data...
[nltk_data]   Package wordnet is already up-to-date!
[nltk_data] Downloading package punkt to /home/jupyter-
[nltk_data]     raptor/nltk_data...
[nltk_data]   Package punkt is already up-to-date!
[nltk_data] Downloading package omw-1.4 to /home/jupyter-
[nltk_data]     raptor/nltk_data...
[nltk_data]   Package omw-1.4 is already up-to-date!

This issue also happens for chrf, meteor and bertscore (and probably others).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0