Skip to content

Commit aae913b

Browse files
committed
更新了包依赖
1 parent 1118a34 commit aae913b

File tree

3 files changed

+51
-51
lines changed

3 files changed

+51
-51
lines changed

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
torch>=1.2.0
33
seqeval>=1.1.0
44
datasets>=1.0, <1.3.*
5-
transformers>=3.2.0, <4
5+
transformers>=4.0.0, <5.0
66
pytorch_lightning>=1.0.0, <1.1.*
77

88
# Front End

requirements.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Core
2-
torch>=1.2.0
3-
transformers>=3.2.0, <4
4-
5-
# Front End
6-
pygtrie>=2.3.0, <2.5
1+
# Core
2+
torch>=1.2.0
3+
transformers>=4.0.0, <5.0
4+
5+
# Front End
6+
pygtrie>=2.3.0, <2.5

setup.py

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
#! /usr/bin/env python
2-
# -*- coding: utf-8 -*_
3-
4-
import setuptools
5-
from distutils.core import setup
6-
7-
from ltp import __version__ as version
8-
9-
with open("README.md", "r", encoding='utf-8') as fh:
10-
long_description = fh.read()
11-
12-
setup(
13-
name='ltp',
14-
version=version,
15-
author='Yunlong Feng',
16-
author_email='ylfeng@ir.hit.edu.cn',
17-
url='https://github.com/HIT-SCIR/ltp',
18-
description='Language Technology Platform',
19-
long_description=long_description,
20-
long_description_content_type="text/markdown",
21-
packages=setuptools.find_packages(exclude=[
22-
'docs'
23-
'tools',
24-
'tests',
25-
'examples',
26-
'config',
27-
]),
28-
install_requires=[
29-
"torch>=1.2.0",
30-
"transformers>=3.2.0, <4",
31-
"pygtrie>=2.3.0, <2.5"
32-
],
33-
classifiers=[
34-
'Development Status :: 1 - Planning',
35-
'Operating System :: OS Independent',
36-
'Intended Audience :: Developers',
37-
'Programming Language :: Python :: 3.6',
38-
'Programming Language :: Python :: 3.7',
39-
'Programming Language :: Python :: 3.8',
40-
'Programming Language :: Python :: 3.9',
41-
'Topic :: Software Development :: Libraries'
42-
],
43-
python_requires='>=3.6.*, <4',
44-
)
1+
#! /usr/bin/env python
2+
# -*- coding: utf-8 -*_
3+
4+
import setuptools
5+
from distutils.core import setup
6+
7+
from ltp import __version__ as version
8+
9+
with open("README.md", "r", encoding='utf-8') as fh:
10+
long_description = fh.read()
11+
12+
setup(
13+
name='ltp',
14+
version=version,
15+
author='Yunlong Feng',
16+
author_email='ylfeng@ir.hit.edu.cn',
17+
url='https://github.com/HIT-SCIR/ltp',
18+
description='Language Technology Platform',
19+
long_description=long_description,
20+
long_description_content_type="text/markdown",
21+
packages=setuptools.find_packages(exclude=[
22+
'docs'
23+
'tools',
24+
'tests',
25+
'examples',
26+
'config',
27+
]),
28+
install_requires=[
29+
"torch>=1.2.0",
30+
"transformers>=4.0.0, <5.0",
31+
"pygtrie>=2.3.0, <2.5"
32+
],
33+
classifiers=[
34+
'Development Status :: 1 - Planning',
35+
'Operating System :: OS Independent',
36+
'Intended Audience :: Developers',
37+
'Programming Language :: Python :: 3.6',
38+
'Programming Language :: Python :: 3.7',
39+
'Programming Language :: Python :: 3.8',
40+
'Programming Language :: Python :: 3.9',
41+
'Topic :: Software Development :: Libraries'
42+
],
43+
python_requires='>=3.6.*, <4',
44+
)

0 commit comments

Comments
 (0)