-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
178 lines (167 loc) · 4.28 KB
/
pyproject.toml
File metadata and controls
178 lines (167 loc) · 4.28 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
[build-system]
requires = [
"setuptools>=65",
"setuptools_scm[toml]>=6.4",
"wheel"
]
build-backend = "setuptools.build_meta"
[project]
name = "opusfilter"
dynamic = ["version"]
description = "Toolbox for filtering and processing parallel corpora"
readme = "README.md"
license = "MIT"
authors = [
{name = "Mikko Aulamo", email = "mikko.aulamo@helsinki.fi"},
{name = "Sami Virpioja", email = "sami.virpioja@helsinki.fi"}
]
maintainers = [
{name = "Mikko Aulamo", email = "mikko.aulamo@helsinki.fi"},
{name = "Sami Virpioja", email = "sami.virpioja@helsinki.fi"}
]
keywords = [
"parallel-corpora",
"corpus-filtering",
"natural-language-processing",
"machine-translation",
"data-cleaning",
"nlp",
"text-processing"
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing :: Linguistic",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
]
requires-python = ">=3.9"
dependencies = [
"setuptools",
"opustools>=1.8.3",
"beautifulsoup4>=4.8.0",
"graphviz",
"py3langid>=0.2.2",
"matplotlib",
"morfessor",
'opus-fast-mosestokenizer>=0.0.8.11',
"pandas>=1.0.0",
"xxhash>=3.2.0",
"sentence-splitter",
"rapidfuzz",
"ruamel.yaml>=0.15.0",
"regex",
"requests",
"scikit-learn",
"subword_nmt",
"tqdm",
'lingua-language-detector>=2.2.0 ; python_version >= "3.12"',
'lingua-language-detector>=1.3.0,<2.2 ; python_version >= "3.10" and python_version < "3.12"',
'lingua-language-detector>=1.3.0,<2.1 ; python_version < "3.10"',
"iso639-lang"
]
[project.optional-dependencies]
pycld2 = [
"pycld2"
]
fasttext = [
"py3langid<0.3.0",
"fasttext"
]
eflomal = [
'eflomal>=2.0.0'
]
jieba = [
'jieba>=0.42'
]
mecab = [
'mecab-python3>=1.0.8',
'unidic-lite'
]
laser = [
'laserembeddings'
]
varikn = [
'varikn'
]
heliport = [
'heliport>=0.10.0'
]
test = [
'pytest'
]
docs = [
'myst-parser',
'sphinx',
'sphinx-rtd-theme',
'sphinxcontrib-bibtex'
]
all = [
"opusfilter[pycld2,fasttext,eflomal,jieba,mecab,laser,varikn,heliport,test,docs]"
]
dev = [
"pytest",
"pytest-cov",
"black",
"isort",
"pylint",
"mypy"
]
[project.urls]
Homepage = "https://github.com/Helsinki-NLP/OpusFilter"
Documentation = "https://helsinki-nlp.github.io/OpusFilter/"
Repository = "https://github.com/Helsinki-NLP/OpusFilter.git"
"Bug Tracker" = "https://github.com/Helsinki-NLP/OpusFilter/issues"
Changelog = "https://github.com/Helsinki-NLP/OpusFilter/blob/main/docs/CHANGELOG.md"
"Paper (ACL 2020)" = "https://www.aclweb.org/anthology/2020.acl-demos.20"
[tool.setuptools]
packages = ["opusfilter"]
include-package-data = true
[project.scripts]
opusfilter = "opusfilter.cli.main:main"
opusfilter-autogen = "opusfilter.cli.autogen:main"
opusfilter-cmd = "opusfilter.cli.cmd:main"
opusfilter-test = "opusfilter.cli.test:main"
opusfilter-scores = "opusfilter.cli.scores:main"
opusfilter-diagram = "opusfilter.cli.diagram:main"
opusfilter-duplicates = "opusfilter.cli.duplicates:main"
[tool.setuptools_scm]
write_to = "opusfilter/_version.py"
# Development and testing tools configuration
[tool.pytest.ini_options]
filterwarnings = ["ignore::UserWarning"]
testpaths = ["tests"]
[tool.flake8]
max-line-length = 127
max-complexity = 18
extend-ignore = ["E203", "W503"]
[tool.pylint]
max-line-length = 127
disable = [
"C0330", # Wrong hanging indentation
"C0326", # Bad whitespace
"R0913", # Too many arguments
"R0912", # Too many branches
"R0915", # Too many statements
"R1708", # Do not use 'continue' in a finally block
]
[tool.black]
line-length = 127
target-version = ['py38']
[tool.isort]
profile = "black"
line_length = 127
multi_line_output = 3
[tool.mypy]
python_version = "3.9"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true