forked from macanv/BERT-BiLSTM-CRF-NER
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
47 lines (46 loc) · 1.82 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
from os import path
import codecs
from setuptools import setup, find_packages
# setup metainfo
# libinfo_py = 'bert_lstm_ner.py'
# libinfo_content = open(libinfo_py, 'r', encoding='utf-8').readlines()
# version_line = [l.strip() for l in libinfo_content if l.startswith('__version__')][0]
# # exec(version_line) # produce __version__
# __version__ = version_line.split('=')[1].replace(' ', '')
# print(__version__)
setup(
name='bert_base',
version='0.0.5',
description='Use Google\'s BERT for Chinese natural language processing tasks such as named entity recognition and provide server services',
url='https://github.com/macanv/BERT-BiLSTM-CRF-NER',
long_description=open('README.md', 'r', encoding='utf-8').read(),
long_description_content_type='text/markdown',
author='Ma Can',
author_email='[email protected]',
license='MIT',
packages=find_packages(),
zip_safe=False,
install_requires=[
'numpy',
'six',
'pyzmq>=16.0.0',
'GPUtil>=1.3.0',
'termcolor>=1.1',
],
extras_require={
'cpu': ['tensorflow>=1.10.0'],
'gpu': ['tensorflow-gpu>=1.10.0'],
'http': ['flask', 'flask-compress', 'flask-cors', 'flask-json']
},
classifiers=(
'Programming Language :: Python :: 3.6',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
#'Topic :: Scientific/Engineering :: Artificial Intelligence :: Natural Language Processing :: Named Entity Recognition',
),
entry_points={
'console_scripts': ['bert-base-serving-start=bert_base.runs:start_server',
'bert-base-ner-train=bert_base.runs:train_ner'],
},
keywords='bert nlp ner NER named entity recognition bilstm crf tensorflow machine learning sentence encoding embedding serving',
)