Skip to content

Commit

Permalink
Pin the version of tokenizers to compile it on macOS Python3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hanlpbot committed Nov 28, 2023
1 parent 6bbf1ff commit ff95dee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
else:
TENSORFLOW = ['tensorflow==2.6.0', 'keras==2.6.0', 'protobuf<3.19']

TOKENIZERS = []
if sys.version_info == (3, 6):
TOKENIZERS = ['tokenizers==0.11.6']

extras_require = {
'amr': [
'penman==1.2.1',
Expand Down Expand Up @@ -66,6 +70,7 @@
'hanlp-common>=0.0.19',
'hanlp-trie>=0.0.4',
'hanlp-downloader',
*TOKENIZERS,
],
extras_require=extras_require,
python_requires='>=3.6',
Expand Down

0 comments on commit ff95dee

Please sign in to comment.