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

[Fix] Use jieba rouge in lcsts #459

Merged
merged 2 commits into from
Oct 9, 2023
Merged

Conversation

Leymore
Copy link
Collaborator

@Leymore Leymore commented Oct 8, 2023

The original rouge implementation used the one from huggingface, which could not handle Chinese datasets, such as LCSTS, correctly and would output 0. In the LCSTS dataset, there were English words and numbers. The huggingface rouge calculation would ignore all Chinese characters and only consider English words and numbers for scoring.

Now, we have switched to using jieba for tokenization and adopted the implementation from https://github.com/pltrdy/rouge, which can correctly process Chinese.

@gaotongxiao gaotongxiao merged commit d7ff933 into open-compass:main Oct 9, 2023
3 checks passed
liushz pushed a commit to liushz/opencompass that referenced this pull request Nov 27, 2023
* use jieba rouge in lcsts

* use rouge_chinese
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants