forked from erickrf/nlpnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
40 lines (37 loc) · 943 Bytes
/
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
import numpy as np
from setuptools import setup
from setuptools import Extension
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=['.', np.get_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.3',
author='Erick Fonseca',
author_email='[email protected]',
url='http://nilc.icmc.usp.br/nlpnet',
long_description=readme()
)