forked from erickrf/nlpnet
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
36 lines (33 loc) · 1.15 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
import sys
from distutils.core import setup
from distutils.extension import Extension
try:
import numpy as np
except ImportError:
print "You don't seem to have NumPy installed. Please get a"
print "copy from www.numpy.org and install it"
sys.exit(1)
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.ner'],
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-preproc.py'],
license = 'MIT',
version = '1.1.6',
author = 'Giuseppe Attardi <[email protected]>, Erick Fonseca <[email protected]>',
author_email = '[email protected]',
url = 'https://github.com/attardi/nlpnet',
long_description = readme()
)