-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove python2 code * Remove python2 code again * Replace unittest with pytest * Bump version to 0.15.0 * Blackify
- Loading branch information
1 parent
5720213
commit 34a6d0b
Showing
20 changed files
with
1,570 additions
and
1,796 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,50 @@ | ||
import io | ||
import os | ||
from pathlib import Path | ||
|
||
from setuptools import setup, find_packages | ||
|
||
packages = [p for p in find_packages() if "tests" not in p] | ||
|
||
PACKAGE_NAME = "snips_nlu_metrics" | ||
ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) | ||
PACKAGE_PATH = os.path.join(ROOT_PATH, PACKAGE_NAME) | ||
README = os.path.join(ROOT_PATH, "README.rst") | ||
ROOT_PATH = Path(__file__).resolve().parent | ||
PACKAGE_PATH = ROOT_PATH / PACKAGE_NAME | ||
README = ROOT_PATH / "README.rst" | ||
VERSION = "__version__" | ||
|
||
with io.open(os.path.join(PACKAGE_PATH, VERSION)) as f: | ||
with (PACKAGE_PATH / VERSION).open() as f: | ||
version = f.readline().strip() | ||
|
||
with io.open(README, 'rt', encoding='utf8') as f: | ||
with README.open(encoding="utf8") as f: | ||
readme = f.read() | ||
|
||
install_requires = [ | ||
"future", | ||
"numpy>=1.7,<2.0", | ||
"scipy>=1.0,<2.0", | ||
"scikit-learn>=0.21.0,<0.23; python_version>='3.5'", | ||
"scikit-learn>=0.19,<0.21; python_version<'3.5'", | ||
"joblib>=0.13,<0.15" | ||
"joblib>=0.13,<0.15", | ||
] | ||
|
||
extras_require = { | ||
"test": [ | ||
"mock>=2.0,<3.0", | ||
] | ||
} | ||
|
||
setup(name=PACKAGE_NAME, | ||
description="Python package to compute NLU metrics", | ||
long_description=readme, | ||
version=version, | ||
author="Adrien Ball", | ||
author_email="[email protected]", | ||
license="Apache 2.0", | ||
url="https://github.com/snipsco/snips-nlu-metrics", | ||
classifiers=[ | ||
"Programming Language :: Python :: 2", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
], | ||
keywords="metrics nlu nlp intent slots entity parsing", | ||
extras_require=extras_require, | ||
install_requires=install_requires, | ||
packages=packages, | ||
include_package_data=True, | ||
zip_safe=False) | ||
extras_require = {"test": ["mock>=2.0,<3.0", "pytest>=5.3.1,<6",]} | ||
|
||
setup( | ||
name=PACKAGE_NAME, | ||
description="Python package to compute NLU metrics", | ||
long_description=readme, | ||
version=version, | ||
author="Adrien Ball", | ||
author_email="[email protected]", | ||
license="Apache 2.0", | ||
url="https://github.com/snipsco/snips-nlu-metrics", | ||
classifiers=[ | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
], | ||
keywords="metrics nlu nlp intent slots entity parsing", | ||
extras_require=extras_require, | ||
install_requires=install_requires, | ||
packages=packages, | ||
include_package_data=True, | ||
zip_safe=False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
from __future__ import absolute_import | ||
|
||
from snips_nlu_metrics.engine import Engine | ||
from snips_nlu_metrics.metrics import (compute_train_test_metrics, | ||
compute_cross_val_metrics) | ||
from snips_nlu_metrics.metrics import ( | ||
compute_train_test_metrics, | ||
compute_cross_val_metrics, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.14.6 | ||
0.15.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.