forked from ho9science/konlpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
70 lines (64 loc) · 2.97 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
61
62
63
64
65
66
67
68
69
70
#! /usr/bin/python2.7
# -*- coding: utf-8 -*-
import os
import sys
import platform
from setuptools import find_packages, setup
from description import __version__
def requirements():
# both JPype1 and JPype1-py3 don't support Windows. see http://konlpy.org/en/v0.4.4/install/.
if platform.system() == 'Windows':
return []
def _openreq(reqfile):
with open(os.path.join(os.path.dirname(__file__), reqfile)) as f:
return f.read().splitlines()
if sys.version_info >= (3, ):
return _openreq('requirements-py3.txt')
else:
return _openreq('requirements.txt')
setup(name='konlpy',
version=__version__,
description='Python package for Korean natural language processing.',
long_description="""\
Korean, the 13th most widely spoken language in the world, is a beautiful, yet complex language. Myriad Korean NLP engines were built by numerous researchers, to computationally extract meaningful features from the labyrinthine text.
KoNLPy is not just to create another, but to unify and build upon their shoulders, and see one step further. It is built particularly in the Python (programming) language, not only because of its its simplicity and elegance, but its powerful string processing modules and applicability to various tasks - including crawling, Web programming, and data analysis.""",
url='http://konlpy.org',
author='Lucy Park',
author_email='[email protected]',
keywords=['Korean', 'CJK',
'NLP', 'natural language processing',
'CL', 'computational linguistics',
'tagging', 'tokenizing', 'linguistics', 'text analytics'],
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Education',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'Topic :: Scientific/Engineering :: Human Machine Interfaces',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Text Processing',
'Topic :: Text Processing :: Filters',
'Topic :: Text Processing :: General',
'Topic :: Text Processing :: Indexing',
'Topic :: Text Processing :: Linguistic',
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
],
license='GPL v3+',
packages=find_packages(),
package_data={'konlpy': [
'data/corpus/*/*.txt',
'data/tagset/*.json',
'java/conf/plugin/*/*/*.json',
'java/data/*/*',
'java/*.jar',
'java/bin/kr/lucypark/*/*.class',
'java/bin/kr/lucypark/*/*/*.class',
]},
install_requires=requirements())