nlp_xiaojiang/setup.py
2019-07-05 02:08:02 +08:00

73 lines
2.4 KiB
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: UTF-8 -*-
# !/usr/bin/python
# @time :2019/6/13 10:17
# @author :Mo
# @function :setup of nlp_xiaojiang
# @codes :copy from https://github.com/TianWenQAQ/Kashgari/blob/master/setup.py
from setuptools import find_packages, setup
import pathlib
# Package meta-data.
NAME = 'nlp-xiaojiang'
DESCRIPTION = 'nlp of augment、chatbot、classification and featureproject of chinese text'
URL = 'https://github.com/yongzhuo/nlp_xiaojiang'
EMAIL = '1903865025@qq.com'
AUTHOR = 'yongzhuo'
LICENSE = 'MIT'
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
required = [
'scikit-learn>=0.19.1',
'fuzzywuzzy>=0.17.0',
'openpyxl>=2.6.2',
'xpinyin>=0.5.6',
'gensim>=3.7.1',
'jieba>=0.39',
'xlrd>=1.2.0',
'tensorflow>=1.8.0',
'keras-bert>=0.41.0',
'Keras>=2.2.0',
'pandas>=0.23.0',
'h5py>=2.7.1',
'numpy>=1.16.1',
'pyemd==0.5.1',
'pathlib',
'translate',
'PyExecJS',
'stanfordcorenlp',]
setup(name=NAME,
version='0.0.1',
description=DESCRIPTION,
long_description=README,
long_description_content_type="text/markdown",
author=AUTHOR,
author_email=EMAIL,
url=URL,
packages=find_packages(exclude=('tests')),
install_requires=required,
license=LICENSE,
classifiers=['License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy'],)
if __name__ == "__main__":
print("setup ok!")
# 说明项目工程目录这里nlp_xiaojiang实际上下边还要有一层nlp_xiangjiang也就是说nlp_xiangjiang和setup同一层
# Data包里必须要有__init__.py否则文件不会生成
# step:
# 打开cmd
# 到达安装目录
# python setup.py build
# python setup.py install