Skip to content

Commit

Permalink
Merge pull request #17 from XiaoMi/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
guoyuankai authored Nov 27, 2020
2 parents cc9e668 + f06ee8d commit 7d0c578
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion minlp-tokenizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pip全自动安装:
```
pip install minlp-tokenizer
```
适用环境:Python 3.5~3.7,TensorFlow>=1.15,<2
适用环境:Python 3.5~3.8,TensorFlow>=1.14

## 3. 使用API

Expand Down
10 changes: 6 additions & 4 deletions minlp-tokenizer/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/*']},
Expand All @@ -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',
]
)

0 comments on commit 7d0c578

Please sign in to comment.