-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
76 lines (67 loc) · 2.69 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
71
72
73
74
75
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# I used the following resources to compile the packaging boilerplate:
# https://python-packaging.readthedocs.io/en/latest/
# https://packaging.python.org/distributing/#requirements-for-packaging-and-distributing
from setuptools import find_packages, setup
def readme():
with open('README.md') as f:
return f.read()
setup(name='zim_to_corpus',
version='0.9.2',
description='Python package and scripts for reading and converting '
'the output of zim_to_dir (i.e. a corpus of Wikipedia '
'pages extracted from a .zim file) to various formats, '
'such as WP2 or BERT input.',
long_description=readme(),
url='https://github.com/DavidNemeskey/zim_to_corpus',
author='Dávid Márk Nemeskey',
license='LGPL',
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: Information Analysis',
# This one is not in the list...
'Topic :: Scientific/Engineering :: Natural Language Processing',
# Environment
'Operating System :: POSIX :: Linux',
'Environment :: Console',
'Natural Language :: English',
'Natural Language :: Hungarian',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
# Specify the Python versions you support here. In particular, ensure
# that you indicate whether you support Python 2, Python 3 or both.
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7'
],
keywords='zim wikipedia wiki wp2 bert',
packages=find_packages(exclude=['scripts', 'src']),
# Install the scripts
scripts=[
'scripts/extract_zim_htmls.py',
'scripts/filter_htmls.py',
'scripts/convert.py',
'scripts/section_statistics.py',
'scripts/extract_vocab.py',
'scripts/sentencepiece_to_bert.py',
],
install_requires=[
'beautifulsoup4',
'lxml',
'multiprocessing-logging',
# A regex engine that supports Unicode character classes (\p{})
'regex',
# For sending requests to tokenizer REST endpoints,
# particularly emtsv
'requests',
# Progress bar
'tqdm'
],
# zip_safe=False,
use_2to3=False)