Skip to content

Commit 942ce93

Browse files
committed
TF is deprecated in Transformers and no longer maintained: #1959
1 parent e72db55 commit 942ce93

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hanlp/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Author: hankcs
33
# Date: 2019-12-28 19:26
44

5-
__version__ = '2.1.2'
5+
__version__ = '2.1.3'
66
"""HanLP version"""
77

88

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
'perin-parser>=0.0.12',
3030
],
3131
'fasttext': [FASTTEXT],
32-
'tf': [FASTTEXT, 'tensorflow>=2.6.0,<2.14']
32+
'tf': [FASTTEXT, 'tensorflow>=2.6.0,<2.14', "transformers<4.55"] # TF is deprecated in Transformers and no longer maintained
3333
}
3434
extras_require['full'] = list(set(sum(extras_require.values(), [])))
3535

0 commit comments

Comments
 (0)