加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.19 KB
一键复制 编辑 原始数据 按行查看 历史
from setuptools import setup, find_packages
import unittest
import codecs
def test_suite():
test_loader = unittest.TestLoader()
test_suite = test_loader.discover("compare_mt/tests", pattern="test_*.py")
return test_suite
exec(open('compare_mt/version_info.py').read())
setup(
name="compare_mt",
version=__version__,
description="Holistic comparison of the output of text generation models",
long_description=codecs.open("README.md", encoding="utf-8").read(),
long_description_content_type="text/markdown",
url="https://github.com/neulab/compare-mt",
author="Graham Neubig",
license="BSD 3-Clause",
test_suite="setup.test_suite",
classifiers=[
"Intended Audience :: Developers",
"Topic :: Text Processing",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3",
],
packages=find_packages(),
entry_points={
"console_scripts": [
"compare-mt=compare_mt.compare_mt_main:main",
"compare-ll=compare_mt.compare_ll_main:main",
],
},
install_requires=[
"nltk>=3.2",
"numpy",
"matplotlib",
"absl-py",
"sacrebleu"
],
include_package_data=True,
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化