Fix: Change rouge-chinese package name to rouge_chinese

To reproduce:
python:
importlib.util.find_spec('rouge-chinese') -> None
importlib.util.find_spec('rouge_chinese') -> ModuleSpec(name='rouge_chinese'...)
from rouge_chinese import Rouge
print(Rouge.__module__) -> rouge_chinese
This commit is contained in:
Shaowen Wang 2023-11-16 20:12:35 -06:00 committed by GitHub
parent ed9f7705ef
commit 397e948984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ _flash_attn2_available = is_package_available("flash_attn") and get_package_vers
_jieba_available = is_package_available("jieba") _jieba_available = is_package_available("jieba")
_matplotlib_available = is_package_available("matplotlib") _matplotlib_available = is_package_available("matplotlib")
_nltk_available = is_package_available("nltk") _nltk_available = is_package_available("nltk")
_rouge_available = is_package_available("rouge-chinese") _rouge_available = is_package_available("rouge_chinese")
_starlette_available = is_package_available("sse-starlette") _starlette_available = is_package_available("sse-starlette")
_uvicorn_available = is_package_available("uvicorn") _uvicorn_available = is_package_available("uvicorn")