forked from stephenhky/PyShortTextCategorization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (58 loc) · 2.61 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
48
49
50
51
52
53
54
55
56
57
58
59
60
from setuptools import setup, Extension
def readme():
with open('README.md') as f:
return f.read()
setup(name='shorttext',
version="0.7.0",
description="Short Text Categorization",
long_description="Supervised learning algorithms for short text categorization using embedded word vectors such as Word2Vec, or immediate feature vectors using topic models",
classifiers=[
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Natural Language :: English",
"Topic :: Scientific/Engineering :: Mathematics",
"Programming Language :: Python :: 2.7",
"License :: OSI Approved :: MIT License",
],
keywords="short text natural language processing text mining",
url="https://github.com/stephenhky/PyShortTextCategorization",
author="Kwan-Yuet Ho",
author_email="[email protected]",
license='MIT',
packages=['shorttext',
'shorttext.utils',
'shorttext.classifiers',
'shorttext.classifiers.embed',
'shorttext.classifiers.embed.nnlib',
'shorttext.classifiers.embed.sumvec',
'shorttext.classifiers.bow',
'shorttext.classifiers.bow.topic',
'shorttext.classifiers.bow.maxent',
'shorttext.data',
'shorttext.stack',
'shorttext.generators',
'shorttext.generators.bow',
'shorttext.generators.charbase',
'shorttext.generators.seq2seq',
'shorttext.metrics',
'shorttext.metrics.dynprog',
'shorttext.metrics.wasserstein',
'shorttext.metrics.embedfuzzy',
'shorttext.spell'],
package_dir={'shorttext': 'shorttext'},
package_data={'shorttext': ['data/*.csv', 'utils/*.pkl', 'metrics/dynprog/*.c', 'metric/dynprog/*.h']},
setup_requires=['numpy'],
install_requires=[
'numpy>=1.11.3', 'scipy>=0.18.1', 'scikit-learn', 'keras>=2.0.0', 'gensim>=3.2.0',
'pandas', 'spacy>=1.7.0', 'stemming', 'pulp',
],
tests_require=[
'unittest2', 'keras>=2.0.0', 'gensim>=3.2.0',
],
scripts=['bin/ShortTextCategorizerConsole',
'bin/ShortTextWordEmbedSimilarity',
'bin/switch_kerasbackend'],
# include_package_data=False,
test_suite="test",
ext_modules = [Extension('_dldist', sources=['shorttext/metrics/dynprog/dldist_wrap.c',
'shorttext/metrics/dynprog/dldist.c'])],
zip_safe=False)