forked from pth1993/nnvlp-package
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (33 loc) · 1.29 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
from setuptools import setup
from setuptools.command.install import install
import subprocess, shlex
import os
class Downloader(install):
def run(self):
print "Installing lastest Lasagne version"
subprocess.call(shlex.split("pip install --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip"))
print "Downloading NLTK data..."
subprocess.call(shlex.split("python -m nltk.downloader all"))
print "Downloading Word Embeddings..."
current_dir = os.path.dirname(os.path.realpath(__file__))
subprocess.call(shlex.split("bash embedding.sh"), cwd=current_dir+'/nnvlp')
install.run(self)
setup(name='nnvlp',
version='0.1.7',
description='Neural Network-Based Vietnamese Language Processing',
url='http://github.com/pth1993/nnvlp-package',
author='Hoang Pham',
author_email='[email protected]',
license='MIT',
packages=['nnvlp'],
install_requires=[
'pyvi', 'numpy', 'theano', 'nltk'
],
dependency_links=['https://github.com/Lasagne/Lasagne/archive/master.zip'],
test_suite='nose.collector',
tests_require=['nose'],
include_package_data=True,
cmdclass={
'install': Downloader,
},
zip_safe=False)