-
Notifications
You must be signed in to change notification settings - Fork 104
/
setup.py
47 lines (40 loc) · 1.05 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 setuptools import Extension, setup
class get_numpy_include(object):
"""Returns Numpy's include path with lazy import."""
def __str__(self):
import numpy
return numpy.get_include()
def readme():
with open('README.rst') as f:
text = f.read()
return text
setup(
name='nlpnet',
description='Neural networks for NLP tasks',
packages=['nlpnet', 'nlpnet.pos', 'nlpnet.srl', 'nlpnet.parse'],
ext_modules=[
Extension(
"nlpnet.network",
["nlpnet/network.c"],
include_dirs=[".", get_numpy_include()],
)
],
scripts=[
'bin/nlpnet-tag.py',
'bin/nlpnet-train.py',
'bin/nlpnet-test.py',
'bin/nlpnet-load-embeddings.py'
],
install_requires=[
'numpy>=1.9.0',
'nltk>=3.2.2',
'six>=1.10',
'h5py>=2.8.0rc1'
],
license='MIT',
version='1.2.4',
author='Erick Fonseca',
author_email='erickrfonseca@gmail.com',
url='http://nilc.icmc.usp.br/nlpnet',
long_description=readme()
)