-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from XiaoMi/develop
Develop
- Loading branch information
Showing
2 changed files
with
7 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,22 +24,23 @@ | |
installed_packages = pkg_resources.working_set | ||
tensorflow_pkgs = [i.key for i in installed_packages if 'tensorflow' in i.key] | ||
if 'tensorflow-gpu' in tensorflow_pkgs: | ||
install_requires.append('tensorflow-gpu>=1.15,<2') | ||
install_requires.append('tensorflow-gpu>=1.14') | ||
else: | ||
install_requires.append('tensorflow>=1.15,<2') | ||
install_requires.append('tensorflow>=1.14') | ||
except ImportError: | ||
install_requires.append('tensorflow>=1.15,<2') | ||
install_requires.append('tensorflow>=1.14') | ||
|
||
setup( | ||
name='minlp-tokenizer', | ||
version='3.2.2', | ||
version='3.2.3', | ||
description='MiNLP-Tokenizer中文分词工具', | ||
author='Yuankai Guo, Liang Shi, Yupeng Chen', | ||
author_email='[email protected], [email protected]', | ||
long_description=long_description, | ||
long_description_content_type='text/markdown', | ||
url='https://github.com/XiaoMi/MiNLP', | ||
license='Apache 2.0', | ||
python_requires='>=3.5, <=3.8', | ||
packages=['minlptokenizer'], | ||
package_dir={'minlptokenizer': 'minlptokenizer'}, | ||
package_data={'minlptokenizer': ['model/zh/*', 'vocab/*', 'lexicon/*', 'trans/*']}, | ||
|
@@ -51,6 +52,7 @@ | |
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Programming Language :: Python :: 3.7', | ||
'Programming Language :: Python :: 3.8', | ||
'Operating System :: OS Independent', | ||
] | ||
) |