Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'TOKENIZERS' from 'sacrebleu.tokenizers' #5567

Open
ALiang36 opened this issue Nov 28, 2024 · 0 comments
Open

Comments

@ALiang36
Copy link

❓ Questions and Help

Before asking:

  1. search the issues.
  2. search the docs.

What is your question?

I'm using the whisper-flanigo model and I'm having some issues calculating WER.

Code

Traceback (most recent call last):
File "whisper_decode_video.py", line 166, in
scorer = WerScorer(
File "/root/whisper-flamingo/av_hubert/fairseq/fairseq/scoring/wer.py", line 37, in init
self.tokenizer = EvaluationTokenizer(
File "/root/whisper-flamingo/av_hubert/fairseq/fairseq/scoring/tokenizer.py", line 36, in init
from sacrebleu.tokenizers import TOKENIZERS
ImportError: cannot import name 'TOKENIZERS' from 'sacrebleu.tokenizers'

What have you tried?

What's your environment?

  • fairseq Version:1.0.0a0
  • sacrebleu:2.4.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant