Commit 0450298 1 parent 8cbe01e commit 0450298 Copy full SHA for 0450298
File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 2
2
# Author: hankcs
3
3
# Date: 2019-12-28 19:26
4
4
5
- __version__ = '2.1.0-beta.53 '
5
+ __version__ = '2.1.0-beta.54 '
6
6
"""HanLP version"""
7
7
8
8
Original file line number Diff line number Diff line change 13
13
exec (fp .read (), version )
14
14
15
15
FASTTEXT = 'fasttext-wheel==0.9.2'
16
- if sys .version_info >= (3 , 10 ):
16
+ sys_version_info = sys .version_info
17
+ if sys_version_info >= (3 , 10 ):
17
18
TENSORFLOW = ['tensorflow>=2.8.0' ]
18
19
else :
19
20
TENSORFLOW = ['tensorflow==2.6.0' , 'keras==2.6.0' , 'protobuf<3.19' ]
20
21
22
+ TOKENIZERS = []
23
+ if (sys_version_info .major , sys_version_info .minor ) == (3 , 6 ) and sys .platform == 'darwin' :
24
+ TOKENIZERS = ['tokenizers==0.10.3' ]
25
+
21
26
extras_require = {
22
27
'amr' : [
23
28
'penman==1.2.1' ,
66
71
'hanlp-common>=0.0.19' ,
67
72
'hanlp-trie>=0.0.4' ,
68
73
'hanlp-downloader' ,
74
+ * TOKENIZERS ,
69
75
],
70
76
extras_require = extras_require ,
71
77
python_requires = '>=3.6' ,
You can’t perform that action at this time.
0 commit comments