Skip to main content

Evaluate the effectiveness of the Whisper model.

Project description

whisper-evaluate

Evaluate the effectiveness of the Whisper model.

Install

从pypi安装:

pip install whisper-evaluate

从本地安装:

git clone https://git.xindong.com/fengyanglu/whisper-evaluate.git
cd whisper-evaluate
pip install dist/whisper_evaluate-1.2.0-py3-none-any.whl

How to use

参考test.py

from whisper_evaluate import Report
import pprint

if __name__ == '__main__':
    # 设置参数: 任务名称
    rep = Report("test")
    # 生成评估报告

    result = rep.report("test_data/test-data-standard-latest.csv",
                   "test_data/test-data-standard-latest-whisper1.1-res.txt",
                   "test_data/test_antispam_0727.txt")
    pprint.pprint(result)
    # 保存统计备查数据 和 计算结果
    rep.save()



    # 单独计算whisper结果
    result = rep.whisper_report("test_data/test-data-standard-latest.csv",
                   "test_data/test-data-standard-latest-whisper1.1-res.txt")
    pprint.pprint(result)

    # 单独计算netease结果
    result = rep.netease_report("test_data/test-data-standard-latest.csv",
                   "test_data/test_antispam_0727.txt")
    pprint.pprint(result)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

whisper-evaluate-1.2.0.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

whisper_evaluate-1.2.0-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page