You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from datasets import load_metric
rouge = load_metric("rouge")
rouge_output = rouge.compute(predictions=['тест тест привет'], references=['тест тест пока'], rouge_types=[
"rouge2"])["rouge2"].mid
print(rouge_output)
the result is Score(precision=0.0, recall=0.0, fmeasure=0.0)
It seems like the rouge_score library that this metric uses filters all non-alphanueric latin characters
in rouge_scorer/tokenize.py with text = re.sub(r"[^a-z0-9]+", " ", six.ensure_str(text)).
Please add support for other languages.
The text was updated successfully, but these errors were encountered:
I calculate rouge with
the result is
Score(precision=0.0, recall=0.0, fmeasure=0.0)
It seems like the
rouge_score
library that this metric uses filters all non-alphanueric latin charactersin
rouge_scorer/tokenize.py
withtext = re.sub(r"[^a-z0-9]+", " ", six.ensure_str(text))
.Please add support for other languages.
The text was updated successfully, but these errors were encountered: