jusText 4.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- justext/__init__.py +15 -0
- justext/__main__.py +329 -0
- justext/_compat.py +53 -0
- justext/core.py +462 -0
- justext/paragraph.py +66 -0
- justext/stoplists/Afrikaans.txt +209 -0
- justext/stoplists/Albanian.txt +529 -0
- justext/stoplists/Arabic.txt +2762 -0
- justext/stoplists/Aragonese.txt +153 -0
- justext/stoplists/Armenian.txt +2908 -0
- justext/stoplists/Aromanian.txt +499 -0
- justext/stoplists/Asturian.txt +656 -0
- justext/stoplists/Azerbaijani.txt +3739 -0
- justext/stoplists/Basque.txt +2274 -0
- justext/stoplists/Belarusian.txt +4418 -0
- justext/stoplists/Belarusian_Taraskievica.txt +4098 -0
- justext/stoplists/Bengali.txt +1089 -0
- justext/stoplists/Bishnupriya_Manipuri.txt +55 -0
- justext/stoplists/Bosnian.txt +2234 -0
- justext/stoplists/Breton.txt +290 -0
- justext/stoplists/Bulgarian.txt +1134 -0
- justext/stoplists/Catalan.txt +227 -0
- justext/stoplists/Cebuano.txt +10 -0
- justext/stoplists/Chuvash.txt +2588 -0
- justext/stoplists/Croatian.txt +2463 -0
- justext/stoplists/Czech.txt +3208 -0
- justext/stoplists/Danish.txt +559 -0
- justext/stoplists/Dutch.txt +290 -0
- justext/stoplists/English.txt +503 -0
- justext/stoplists/Esperanto.txt +564 -0
- justext/stoplists/Estonian.txt +6295 -0
- justext/stoplists/Finnish.txt +7317 -0
- justext/stoplists/French.txt +414 -0
- justext/stoplists/Galician.txt +449 -0
- justext/stoplists/Georgian.txt +5433 -0
- justext/stoplists/German.txt +692 -0
- justext/stoplists/Greek.txt +626 -0
- justext/stoplists/Gujarati.txt +404 -0
- justext/stoplists/Haitian.txt +33 -0
- justext/stoplists/Hebrew.txt +4270 -0
- justext/stoplists/Hindi.txt +373 -0
- justext/stoplists/Hungarian.txt +3446 -0
- justext/stoplists/Icelandic.txt +721 -0
- justext/stoplists/Ido.txt +46 -0
- justext/stoplists/Igbo.txt +149 -0
- justext/stoplists/Indonesian.txt +919 -0
- justext/stoplists/Irish.txt +216 -0
- justext/stoplists/Italian.txt +569 -0
- justext/stoplists/Javanese.txt +610 -0
- justext/stoplists/Kannada.txt +7060 -0
- justext/stoplists/Kazakh.txt +3671 -0
- justext/stoplists/Korean.txt +13061 -0
- justext/stoplists/Kurdish.txt +576 -0
- justext/stoplists/Kyrgyz.txt +3872 -0
- justext/stoplists/Latin.txt +1904 -0
- justext/stoplists/Latvian.txt +3611 -0
- justext/stoplists/Lithuanian.txt +4964 -0
- justext/stoplists/Lombard.txt +127 -0
- justext/stoplists/Low_Saxon.txt +172 -0
- justext/stoplists/Luxembourgish.txt +387 -0
- justext/stoplists/Macedonian.txt +928 -0
- justext/stoplists/Malay.txt +877 -0
- justext/stoplists/Malayalam.txt +11782 -0
- justext/stoplists/Maltese.txt +1388 -0
- justext/stoplists/Marathi.txt +2151 -0
- justext/stoplists/Neapolitan.txt +300 -0
- justext/stoplists/Nepali.txt +1540 -0
- justext/stoplists/Newar.txt +88 -0
- justext/stoplists/Norwegian_Bokmal.txt +474 -0
- justext/stoplists/Norwegian_Nynorsk.txt +350 -0
- justext/stoplists/Occitan.txt +499 -0
- justext/stoplists/Persian.txt +485 -0
- justext/stoplists/Piedmontese.txt +71 -0
- justext/stoplists/Polish.txt +3570 -0
- justext/stoplists/Portuguese.txt +490 -0
- justext/stoplists/Quechua.txt +266 -0
- justext/stoplists/Romanian.txt +993 -0
- justext/stoplists/Russian.txt +5088 -0
- justext/stoplists/Samogitian.txt +1759 -0
- justext/stoplists/Serbian.txt +1700 -0
- justext/stoplists/Serbo_Croatian.txt +2418 -0
- justext/stoplists/Sicilian.txt +514 -0
- justext/stoplists/Simple_English.txt +280 -0
- justext/stoplists/Slovak.txt +2417 -0
- justext/stoplists/Slovenian.txt +2343 -0
- justext/stoplists/Spanish.txt +304 -0
- justext/stoplists/Sundanese.txt +868 -0
- justext/stoplists/Swahili.txt +385 -0
- justext/stoplists/Swedish.txt +737 -0
- justext/stoplists/Tagalog.txt +148 -0
- justext/stoplists/Tamil.txt +6281 -0
- justext/stoplists/Telugu.txt +4566 -0
- justext/stoplists/Turkish.txt +3082 -0
- justext/stoplists/Turkmen.txt +3204 -0
- justext/stoplists/Ukrainian.txt +5025 -0
- justext/stoplists/Urdu.txt +233 -0
- justext/stoplists/Uzbek.txt +5927 -0
- justext/stoplists/Vietnamese.txt +292 -0
- justext/stoplists/Volapuk.txt +75 -0
- justext/stoplists/Walloon.txt +178 -0
- justext/stoplists/Waray_Waray.txt +11 -0
- justext/stoplists/Welsh.txt +550 -0
- justext/stoplists/West_Frisian.txt +251 -0
- justext/stoplists/Western_Panjabi.txt +260 -0
- justext/stoplists/Yoruba.txt +307 -0
- justext/utils.py +66 -0
- justext-4.0.0.dist-info/METADATA +126 -0
- justext-4.0.0.dist-info/RECORD +110 -0
- justext-4.0.0.dist-info/WHEEL +4 -0
- justext-4.0.0.dist-info/licenses/LICENSE.rst +24 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
ni
|
|
2
|
+
je
|
|
3
|
+
ti
|
|
4
|
+
tí
|
|
5
|
+
ó
|
|
6
|
+
ní
|
|
7
|
+
to
|
|
8
|
+
ati
|
|
9
|
+
a
|
|
10
|
+
ń
|
|
11
|
+
orile-ede
|
|
12
|
+
awon
|
|
13
|
+
nínú
|
|
14
|
+
jẹ́
|
|
15
|
+
o
|
|
16
|
+
ninu
|
|
17
|
+
àti
|
|
18
|
+
si
|
|
19
|
+
Gregory.
|
|
20
|
+
fi
|
|
21
|
+
sí
|
|
22
|
+
ile
|
|
23
|
+
tele.
|
|
24
|
+
yìí
|
|
25
|
+
ọdún
|
|
26
|
+
pé
|
|
27
|
+
Kàlẹ́ndà
|
|
28
|
+
won
|
|
29
|
+
kan
|
|
30
|
+
of
|
|
31
|
+
wa
|
|
32
|
+
fun
|
|
33
|
+
àwon
|
|
34
|
+
the
|
|
35
|
+
gba
|
|
36
|
+
bi
|
|
37
|
+
tó
|
|
38
|
+
lati
|
|
39
|
+
se
|
|
40
|
+
bá
|
|
41
|
+
Ijoba
|
|
42
|
+
Agbegbe
|
|
43
|
+
n
|
|
44
|
+
fún
|
|
45
|
+
omo
|
|
46
|
+
Ibile
|
|
47
|
+
sì
|
|
48
|
+
máa
|
|
49
|
+
náà
|
|
50
|
+
ara
|
|
51
|
+
láti
|
|
52
|
+
di
|
|
53
|
+
bí
|
|
54
|
+
kò
|
|
55
|
+
re
|
|
56
|
+
Ipinle
|
|
57
|
+
èdè
|
|
58
|
+
Aare
|
|
59
|
+
lo
|
|
60
|
+
ìlú
|
|
61
|
+
Nobel
|
|
62
|
+
Ebun
|
|
63
|
+
wà
|
|
64
|
+
pe
|
|
65
|
+
Itokasi.
|
|
66
|
+
won
|
|
67
|
+
àwon
|
|
68
|
+
wón
|
|
69
|
+
kí
|
|
70
|
+
Alakoso
|
|
71
|
+
àwọn
|
|
72
|
+
Agba
|
|
73
|
+
wón
|
|
74
|
+
mo
|
|
75
|
+
Naijiria
|
|
76
|
+
and
|
|
77
|
+
ló
|
|
78
|
+
wá
|
|
79
|
+
ohun
|
|
80
|
+
ilẹ̀
|
|
81
|
+
de
|
|
82
|
+
ènìyàn
|
|
83
|
+
gbogbo
|
|
84
|
+
se
|
|
85
|
+
odun
|
|
86
|
+
ijoba
|
|
87
|
+
tabi
|
|
88
|
+
ilé
|
|
89
|
+
Ó
|
|
90
|
+
Pope
|
|
91
|
+
O
|
|
92
|
+
ko
|
|
93
|
+
àdúgbò
|
|
94
|
+
jé
|
|
95
|
+
so
|
|
96
|
+
in
|
|
97
|
+
ilu
|
|
98
|
+
Naijiria.
|
|
99
|
+
tàbí
|
|
100
|
+
lè
|
|
101
|
+
onimo
|
|
102
|
+
tún
|
|
103
|
+
rí
|
|
104
|
+
oloselu
|
|
105
|
+
ibi
|
|
106
|
+
ò
|
|
107
|
+
Ìtumò:
|
|
108
|
+
so
|
|
109
|
+
pè
|
|
110
|
+
le
|
|
111
|
+
Yorùbá
|
|
112
|
+
gbé
|
|
113
|
+
ibile
|
|
114
|
+
sayensi
|
|
115
|
+
orin
|
|
116
|
+
ba
|
|
117
|
+
èyí
|
|
118
|
+
pelu
|
|
119
|
+
A
|
|
120
|
+
wọn
|
|
121
|
+
(ojoibi
|
|
122
|
+
nígbà
|
|
123
|
+
í
|
|
124
|
+
Ní
|
|
125
|
+
yi
|
|
126
|
+
jé
|
|
127
|
+
Awon
|
|
128
|
+
mú
|
|
129
|
+
dé
|
|
130
|
+
Àwon
|
|
131
|
+
wí
|
|
132
|
+
nípa
|
|
133
|
+
wọ́n
|
|
134
|
+
Nigeria.
|
|
135
|
+
i
|
|
136
|
+
ìgbà
|
|
137
|
+
ikan
|
|
138
|
+
n
|
|
139
|
+
á
|
|
140
|
+
tun
|
|
141
|
+
rè
|
|
142
|
+
ogun
|
|
143
|
+
Amerika
|
|
144
|
+
ki
|
|
145
|
+
yóò
|
|
146
|
+
January
|
|
147
|
+
Ìjọ
|
|
148
|
+
àwon
|
|
149
|
+
was
|
|
150
|
+
Ile
|
|
151
|
+
oluilu
|
|
152
|
+
Popu
|
|
153
|
+
Kátólìkì
|
|
154
|
+
eni
|
|
155
|
+
be
|
|
156
|
+
kó
|
|
157
|
+
December
|
|
158
|
+
August
|
|
159
|
+
ìtàn
|
|
160
|
+
Oba
|
|
161
|
+
yìí.
|
|
162
|
+
February
|
|
163
|
+
gege
|
|
164
|
+
is
|
|
165
|
+
olukowe
|
|
166
|
+
nítorí
|
|
167
|
+
ede
|
|
168
|
+
eniyan
|
|
169
|
+
agbegbe
|
|
170
|
+
ṣe
|
|
171
|
+
Àwọn
|
|
172
|
+
dá
|
|
173
|
+
lori
|
|
174
|
+
lo
|
|
175
|
+
on
|
|
176
|
+
July
|
|
177
|
+
October
|
|
178
|
+
March
|
|
179
|
+
òun
|
|
180
|
+
Gomina
|
|
181
|
+
Afrika.
|
|
182
|
+
May
|
|
183
|
+
April
|
|
184
|
+
mi
|
|
185
|
+
ilè
|
|
186
|
+
ona
|
|
187
|
+
ju
|
|
188
|
+
September
|
|
189
|
+
ayé
|
|
190
|
+
Kalenda
|
|
191
|
+
Ibujoko
|
|
192
|
+
je
|
|
193
|
+
lórí
|
|
194
|
+
yí
|
|
195
|
+
Alagba
|
|
196
|
+
nomba
|
|
197
|
+
e
|
|
198
|
+
rè
|
|
199
|
+
ìdí
|
|
200
|
+
igba
|
|
201
|
+
Amerika.
|
|
202
|
+
November
|
|
203
|
+
Ni
|
|
204
|
+
lilo
|
|
205
|
+
June
|
|
206
|
+
na
|
|
207
|
+
apa
|
|
208
|
+
ipinle
|
|
209
|
+
The
|
|
210
|
+
omo
|
|
211
|
+
Ohun
|
|
212
|
+
pa
|
|
213
|
+
John
|
|
214
|
+
Iwosan.
|
|
215
|
+
Olominira
|
|
216
|
+
onimosayensi
|
|
217
|
+
titi
|
|
218
|
+
é
|
|
219
|
+
gbà
|
|
220
|
+
lé
|
|
221
|
+
mu
|
|
222
|
+
eyi
|
|
223
|
+
akoko
|
|
224
|
+
egbe
|
|
225
|
+
pàtàkì
|
|
226
|
+
Bí
|
|
227
|
+
Àsìá
|
|
228
|
+
orílẹ̀-èdè
|
|
229
|
+
Guusu
|
|
230
|
+
yìí,
|
|
231
|
+
Osu
|
|
232
|
+
ọmọ
|
|
233
|
+
nipa
|
|
234
|
+
Fisiksi.
|
|
235
|
+
owonina
|
|
236
|
+
Èdè
|
|
237
|
+
Afrika
|
|
238
|
+
Orile-ede
|
|
239
|
+
lára
|
|
240
|
+
se
|
|
241
|
+
baba
|
|
242
|
+
un
|
|
243
|
+
leyin
|
|
244
|
+
oruko
|
|
245
|
+
da
|
|
246
|
+
nnkan
|
|
247
|
+
inú
|
|
248
|
+
larin
|
|
249
|
+
gbólóhùn
|
|
250
|
+
kì
|
|
251
|
+
for
|
|
252
|
+
ará
|
|
253
|
+
ri
|
|
254
|
+
béè
|
|
255
|
+
Flag
|
|
256
|
+
isé
|
|
257
|
+
ma
|
|
258
|
+
oko
|
|
259
|
+
oriki
|
|
260
|
+
náà.
|
|
261
|
+
ojo
|
|
262
|
+
títí
|
|
263
|
+
Èyí
|
|
264
|
+
bíi
|
|
265
|
+
má
|
|
266
|
+
Ogun
|
|
267
|
+
wo
|
|
268
|
+
nigba
|
|
269
|
+
Kemistri.
|
|
270
|
+
iye
|
|
271
|
+
bo
|
|
272
|
+
Nígbà
|
|
273
|
+
faili
|
|
274
|
+
à
|
|
275
|
+
Komputa.
|
|
276
|
+
igekurupapo
|
|
277
|
+
pataki
|
|
278
|
+
méjì
|
|
279
|
+
rè
|
|
280
|
+
rẹ̀
|
|
281
|
+
bàbá
|
|
282
|
+
jé
|
|
283
|
+
as
|
|
284
|
+
iwe
|
|
285
|
+
olori
|
|
286
|
+
ise
|
|
287
|
+
òkè
|
|
288
|
+
ni.
|
|
289
|
+
mìíràn
|
|
290
|
+
fa
|
|
291
|
+
ojú
|
|
292
|
+
Nàìjíríà
|
|
293
|
+
(ii)
|
|
294
|
+
olórí
|
|
295
|
+
Ìtàn
|
|
296
|
+
omi
|
|
297
|
+
from
|
|
298
|
+
ibè
|
|
299
|
+
Ìpínlẹ̀
|
|
300
|
+
tẹ́lẹ̀.
|
|
301
|
+
Ariwa
|
|
302
|
+
bere
|
|
303
|
+
lò
|
|
304
|
+
orí
|
|
305
|
+
an
|
|
306
|
+
nì
|
|
307
|
+
Ìdí
|
justext/utils.py
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
from __future__ import absolute_import
|
|
4
|
+
from __future__ import division, print_function, unicode_literals
|
|
5
|
+
|
|
6
|
+
import re
|
|
7
|
+
import os
|
|
8
|
+
import sys
|
|
9
|
+
import pkgutil
|
|
10
|
+
|
|
11
|
+
# BOM (U+FEFF) and its byte-swapped counterpart (U+FFFE) are not matched by
|
|
12
|
+
# `\s` but they carry no visible content, so treat them as white-space.
|
|
13
|
+
MULTIPLE_WHITESPACE_PATTERN = re.compile(r"[\s]+", re.UNICODE)
|
|
14
|
+
ONLY_WHITESPACE_PATTERN = re.compile(r"\A[\s]*\Z", re.UNICODE)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def normalize_whitespace(text):
|
|
18
|
+
"""
|
|
19
|
+
Translates multiple whitespace into single space character.
|
|
20
|
+
If there is at least one new line character chunk is replaced
|
|
21
|
+
by single LF (Unix new line) character.
|
|
22
|
+
"""
|
|
23
|
+
return MULTIPLE_WHITESPACE_PATTERN.sub(_replace_whitespace, text)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _replace_whitespace(match):
|
|
27
|
+
"""Normalize all spacing characters that aren't a newline to a space."""
|
|
28
|
+
text = match.group()
|
|
29
|
+
return "\n" if "\n" in text or "\r" in text else " "
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def is_blank(string):
|
|
33
|
+
"""
|
|
34
|
+
Returns `True` if string contains only white-space characters
|
|
35
|
+
or is empty. Otherwise `False` is returned.
|
|
36
|
+
"""
|
|
37
|
+
return not string or bool(ONLY_WHITESPACE_PATTERN.match(string))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
def get_stoplists():
|
|
41
|
+
"""Returns a collection of built-in stop-lists."""
|
|
42
|
+
path_to_stoplists = os.path.dirname(sys.modules["justext"].__file__)
|
|
43
|
+
path_to_stoplists = os.path.join(path_to_stoplists, "stoplists")
|
|
44
|
+
|
|
45
|
+
stoplist_names = []
|
|
46
|
+
for filename in os.listdir(path_to_stoplists):
|
|
47
|
+
name, extension = os.path.splitext(filename)
|
|
48
|
+
if extension == ".txt":
|
|
49
|
+
stoplist_names.append(name)
|
|
50
|
+
|
|
51
|
+
return frozenset(stoplist_names)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def get_stoplist(language):
|
|
55
|
+
"""Returns an built-in stop-list for the language as a set of words."""
|
|
56
|
+
file_path = os.path.join("stoplists", "%s.txt" % language)
|
|
57
|
+
try:
|
|
58
|
+
stopwords = pkgutil.get_data("justext", file_path)
|
|
59
|
+
except IOError:
|
|
60
|
+
raise ValueError(
|
|
61
|
+
"Stoplist for language '%s' is missing. "
|
|
62
|
+
"Please use function 'get_stoplists' for complete list of stoplists "
|
|
63
|
+
"and feel free to contribute by your own stoplist." % language
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
return frozenset(w.decode("utf8").lower() for w in stopwords.splitlines())
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: jusText
|
|
3
|
+
Version: 4.0.0
|
|
4
|
+
Summary: Heuristic based boilerplate removal tool
|
|
5
|
+
Author: Jan Pomikálek
|
|
6
|
+
Author-email: Jan Pomikálek <jan.pomikalek@gmail.com>
|
|
7
|
+
License-Expression: BSD-2-Clause
|
|
8
|
+
License-File: LICENSE.rst
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Natural Language :: English
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.15
|
|
23
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
24
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
25
|
+
Classifier: Topic :: Software Development :: Pre-processors
|
|
26
|
+
Classifier: Topic :: Text Processing :: Filters
|
|
27
|
+
Classifier: Topic :: Text Processing :: Markup :: HTML
|
|
28
|
+
Requires-Dist: lxml[html-clean]>=4.4.2
|
|
29
|
+
Maintainer: Michal Belica
|
|
30
|
+
Maintainer-email: Michal Belica <miso.belica@gmail.com>
|
|
31
|
+
Requires-Python: >=3.8
|
|
32
|
+
Project-URL: Homepage, https://github.com/miso-belica/jusText
|
|
33
|
+
Project-URL: Repository, https://github.com/miso-belica/jusText
|
|
34
|
+
Description-Content-Type: text/markdown
|
|
35
|
+
|
|
36
|
+
# jusText
|
|
37
|
+
|
|
38
|
+
[](https://github.com/miso-belica/jusText/actions/workflows/run-tests.yml)
|
|
39
|
+
|
|
40
|
+
Program jusText is a tool for removing boilerplate content, such as navigation
|
|
41
|
+
links, headers, and footers from HTML pages. It is
|
|
42
|
+
[designed](doc/algorithm.rst) to preserve
|
|
43
|
+
mainly text containing full sentences and it is therefore well suited for
|
|
44
|
+
creating linguistic resources such as Web corpora. You can
|
|
45
|
+
[try it online](http://nlp.fi.muni.cz/projects/justext/).
|
|
46
|
+
|
|
47
|
+
This is a fork of original (currently unmaintained) code of [jusText](http://code.google.com/p/justext/) hosted
|
|
48
|
+
on Google Code.
|
|
49
|
+
|
|
50
|
+
Adaptations of the algorithm to other languages:
|
|
51
|
+
|
|
52
|
+
- [C++](https://github.com/endredy/jusText)
|
|
53
|
+
- [Go](https://github.com/JalfResi/justext)
|
|
54
|
+
- [Java](https://github.com/wizenoze/justext-java)
|
|
55
|
+
- [Javascript](https://github.com/smodin-io/justext)
|
|
56
|
+
|
|
57
|
+
Some libraries using jusText:
|
|
58
|
+
|
|
59
|
+
- [chirp](https://github.com/9b/chirp)
|
|
60
|
+
- [lazynlp](https://github.com/chiphuyen/lazynlp)
|
|
61
|
+
- [off-topic-memento-toolkit](https://github.com/oduwsdl/off-topic-memento-toolkit)
|
|
62
|
+
- [pears](https://github.com/PeARSearch/PeARS-orchard)
|
|
63
|
+
- [readability calculator](https://github.com/joaopalotti/readability_calculator)
|
|
64
|
+
- [sky](https://github.com/kootenpv/sky)
|
|
65
|
+
|
|
66
|
+
Some currently (Jan 2020) maintained alternatives:
|
|
67
|
+
|
|
68
|
+
- [dragnet](https://github.com/dragnet-org/dragnet)
|
|
69
|
+
- [html2text](https://github.com/Alir3z4/html2text)
|
|
70
|
+
- [inscriptis](https://github.com/weblyzard/inscriptis)
|
|
71
|
+
- [newspaper](https://github.com/codelucas/newspaper)
|
|
72
|
+
- [python-readability](https://github.com/buriy/python-readability)
|
|
73
|
+
- [trafilatura](https://github.com/adbar/trafilatura)
|
|
74
|
+
|
|
75
|
+
## Installation
|
|
76
|
+
|
|
77
|
+
Make sure you have [Python](http://www.python.org/) 3.8+ and [pip](https://pip.pypa.io/en/stable/)
|
|
78
|
+
([Windows](http://docs.python-guide.org/en/latest/starting/install/win/),
|
|
79
|
+
[Linux](http://docs.python-guide.org/en/latest/starting/install/linux/)) installed.
|
|
80
|
+
Run simply:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
$ pip install justext
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Dependencies
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
lxml (version depends on your Python version)
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Usage
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
$ python -m justext -s Czech -o text.txt http://www.zdrojak.cz/clanky/automaticke-zabezpeceni/
|
|
96
|
+
$ python -m justext -s English -o plain_text.txt english_page.html
|
|
97
|
+
$ python -m justext --help # for more info
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Python API
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
import requests
|
|
104
|
+
import justext
|
|
105
|
+
|
|
106
|
+
response = requests.get("http://planet.python.org/")
|
|
107
|
+
paragraphs = justext.justext(response.content, justext.get_stoplist("English"))
|
|
108
|
+
for paragraph in paragraphs:
|
|
109
|
+
if not paragraph.is_boilerplate:
|
|
110
|
+
print(paragraph.text)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Development
|
|
114
|
+
|
|
115
|
+
Install [uv](https://docs.astral.sh/uv/) and run tests and the linter via
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
$ uv run pytest
|
|
119
|
+
$ uv run ruff check
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Acknowledgements
|
|
123
|
+
|
|
124
|
+
This software has been developed at the [Natural Language Processing Centre](http://nlp.fi.muni.cz/en/nlpc) of
|
|
125
|
+
[Masaryk University in Brno](http://nlp.fi.muni.cz/en) with a financial support from [PRESEMT](http://presemt.eu/) and
|
|
126
|
+
[Lexical Computing Ltd.](http://lexicalcomputing.com/) It also relates to [PhD research](http://is.muni.cz/th/45523/fi_d/phdthesis.pdf) of Jan Pomikálek.
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
justext/__init__.py,sha256=roO_q5mXJiM_C9Y_rEzhHTX3uTRxVm5s0LIEmgmD5pQ,269
|
|
2
|
+
justext/__main__.py,sha256=qkBF3si0gOMgn8FNm_KgkolhKjzQY_ZZgNgMoFiOfUs,13051
|
|
3
|
+
justext/_compat.py,sha256=tXpdRg7TE5PSmXYgORGCXDsZqYmI0Vf3D265kizZEtk,925
|
|
4
|
+
justext/core.py,sha256=h58AP1051XgqbeaZX0RI5C_8Mhy3E6tLYwsV0d9HvEc,17590
|
|
5
|
+
justext/paragraph.py,sha256=WcvqzqTJCY4FPCczItEvxCSTcIGo2xSO5rUhi-WiHJ4,1667
|
|
6
|
+
justext/stoplists/Afrikaans.txt,sha256=YAaLfysaS0RAej_2lVZ2WmgxlJI-xq6heCw0Vlp45tQ,1205
|
|
7
|
+
justext/stoplists/Albanian.txt,sha256=3lViqj9iJwsmGClGLmkSCMPBhAlNRP-5UyJqYSbKAnw,3424
|
|
8
|
+
justext/stoplists/Arabic.txt,sha256=5P-UEcrUkQ2CujG1mUxgTu3uPPZStNahPj9_9PpKN9M,30188
|
|
9
|
+
justext/stoplists/Aragonese.txt,sha256=2-0-lJEhiQ8V2YVB2r_eNe5IwgSljVTqyfrFh3hvAUE,918
|
|
10
|
+
justext/stoplists/Armenian.txt,sha256=eQEpkUomBFjdoq2mjYQll4bv73OiZR6w27oaFh7wOWs,45262
|
|
11
|
+
justext/stoplists/Aromanian.txt,sha256=K33xgj5s3te82MeR7vvmvAkbeQdk_6m_FbhCUKeCizc,3544
|
|
12
|
+
justext/stoplists/Asturian.txt,sha256=WF6RIv-Pix_0RoZTb6FcYzMCTvMb84EZEHKDeaxrHLs,4379
|
|
13
|
+
justext/stoplists/Azerbaijani.txt,sha256=xtMgJpmqcOnwBcKcjNvmK2ivF547R1ATP_mYY7Hz8QY,33201
|
|
14
|
+
justext/stoplists/Basque.txt,sha256=jSg1EhDOWnxrjiZQ81-L2r-Dyu0w06eX_zDgdcJ1XRY,17791
|
|
15
|
+
justext/stoplists/Belarusian.txt,sha256=vkAYnwJELVlcJkdkwa1nsodFPzgXfEK-kwzMsKIcJiE,65714
|
|
16
|
+
justext/stoplists/Belarusian_Taraskievica.txt,sha256=5zQ-iz3CjKdA4MN26DMDunydvutZMKJL4yFaJCBJLKA,61954
|
|
17
|
+
justext/stoplists/Bengali.txt,sha256=nZWVYwXZgsMxpaqm2iVXhjLfaWpwyMIE1E1SCXD2o-Q,18705
|
|
18
|
+
justext/stoplists/Bishnupriya_Manipuri.txt,sha256=zXCFcjTyddCpMaKpVAg2YpEQpMNgrbfbkYlLAGWyRZM,950
|
|
19
|
+
justext/stoplists/Bosnian.txt,sha256=WdUiO46BgquLB98NUNzpiqFAVD74Ed_RBQk0TgtLM0k,16143
|
|
20
|
+
justext/stoplists/Breton.txt,sha256=dl9l_6jOovpaj9y4phOIskwONlYYp3nxAFRFcboNQKs,1649
|
|
21
|
+
justext/stoplists/Bulgarian.txt,sha256=HTHDUpJja2CbOxTjhMFsRWNXedKpmga1jFFIGC0LudA,15098
|
|
22
|
+
justext/stoplists/Catalan.txt,sha256=l9TE7fqEhgbV7QuBXYHLmI8Gd_cUyJwTVEnY1iNyTtE,1344
|
|
23
|
+
justext/stoplists/Cebuano.txt,sha256=A8LaFsC28AGx5SawJRGdyZ_UY0Jt01MDaXXRnbeZuko,57
|
|
24
|
+
justext/stoplists/Chuvash.txt,sha256=Dc5_Fzzk7A5O9bb7FE2f4elTlX__pkGu2C9Hp295WFA,34998
|
|
25
|
+
justext/stoplists/Croatian.txt,sha256=IzH8jQcjGmXH1hEyxa9teOSIc8rTzCM0IghSIw1DRc8,17928
|
|
26
|
+
justext/stoplists/Czech.txt,sha256=iBojQPasGZOW6xX021SWTCAcHGbH-mZ1IyfJ2Vwacrk,25564
|
|
27
|
+
justext/stoplists/Danish.txt,sha256=Q1ip-MtVFsliZZezoc0OXl_SAIC2NBAytoKeixfOnTg,3504
|
|
28
|
+
justext/stoplists/Dutch.txt,sha256=tAYBRTQjWqP2iEd-bbsTR7OVWQniwqwyWP4gVMIEWKU,1756
|
|
29
|
+
justext/stoplists/English.txt,sha256=a0_FIOKxTCeooEbZzjgU2tbSihhlS_iwKaCCiiU8NCg,3123
|
|
30
|
+
justext/stoplists/Esperanto.txt,sha256=Vh_Kfe2vSNoCpe2pWCB7uzTm0unwzhif2Q1PkuKkHtw,3657
|
|
31
|
+
justext/stoplists/Estonian.txt,sha256=XMgWbF9bSW8fImhQmBGXpd4RO9zDcPPF3DDzmbGmCiE,50849
|
|
32
|
+
justext/stoplists/Finnish.txt,sha256=rtxFjZmONDdrH6ZzxJXGr0S8pZuxLES-W9bQTGl-fiA,66511
|
|
33
|
+
justext/stoplists/French.txt,sha256=oijLMSm1GGJBxEXZgfvEqKnoiNNPVBxnB-ye5KdOKMw,2656
|
|
34
|
+
justext/stoplists/Galician.txt,sha256=yl_C03dzOh2BzY4GNWcWWai7zHjOcR44wTLSw5EFu1U,2857
|
|
35
|
+
justext/stoplists/Georgian.txt,sha256=ZN1TUoFRLpekQjR2eYlDLq5teL2p9osqXBh34sEcivk,128057
|
|
36
|
+
justext/stoplists/German.txt,sha256=XOm4uUQsNWv2hYT-uchO-RT1jY6n4qQ1Eu5FGba-4Yg,4653
|
|
37
|
+
justext/stoplists/Greek.txt,sha256=l5HdC0Tq7P6w_J2pC2zEEcSNyEFjE35MwLt_83vfIC0,7778
|
|
38
|
+
justext/stoplists/Gujarati.txt,sha256=dsD2AibFemQlfLmYFNhMlA92kkXjK2nWWdTkvcG1Org,6035
|
|
39
|
+
justext/stoplists/Haitian.txt,sha256=IKazXYcgP6eYUTeOzgm5HELVc8Y2e9Pd7pEcmLEaBhQ,175
|
|
40
|
+
justext/stoplists/Hebrew.txt,sha256=0ugkR_EJl3UzOB0T3gpniHQuFyIxfJ1eQOpc8riQG7Q,45164
|
|
41
|
+
justext/stoplists/Hindi.txt,sha256=HcRAA1eYK5uJeph7WaAXal2b7txhi6sgONb39tDFL-Q,4918
|
|
42
|
+
justext/stoplists/Hungarian.txt,sha256=ToEQRiSP96e3E5hl8lgweqSp5R5FFBn4cypRT7zr9r4,29227
|
|
43
|
+
justext/stoplists/Icelandic.txt,sha256=YlRSbmkrCSi91UZMZqNWSG1Eb_kUi9mZaKFltOWVkpc,4813
|
|
44
|
+
justext/stoplists/Ido.txt,sha256=-Wo2U-M4bzVqxw0AMoCXobVHYqj99cOufuLwxofIp44,249
|
|
45
|
+
justext/stoplists/Igbo.txt,sha256=wgSggs8V8H-QxYyXs5I00_CVbtnf6dB5IXgqf8sTLj8,733
|
|
46
|
+
justext/stoplists/Indonesian.txt,sha256=8BQ7QBHLbhedhycHCVgzaI71ufgS26nU667KDABl0a8,6758
|
|
47
|
+
justext/stoplists/Irish.txt,sha256=mXKFmXSTfDCtjPJhpLIhgO-I1w5PEELW8bBhXamrRSI,1191
|
|
48
|
+
justext/stoplists/Italian.txt,sha256=9k7T66mAwv4gU16nu_NyAa2uSYVx7dOsqDj4R0wQxvw,3715
|
|
49
|
+
justext/stoplists/Javanese.txt,sha256=FqGV4x4Fhjde3O7HuXVKy6Jdvqqwe15itlmHw-YHOWA,4533
|
|
50
|
+
justext/stoplists/Kannada.txt,sha256=58J7-wpr5ZG5xdn5fSMbn2sXZ4DV2YtcVWGrWAX3uhg,160792
|
|
51
|
+
justext/stoplists/Kazakh.txt,sha256=pGkfrdkepxpTwUXOvVb-Gaqlo2qKOykwmGl5w9mTsNs,52739
|
|
52
|
+
justext/stoplists/Korean.txt,sha256=kUtWytj5Bn162uL5yrzEMK3ILVXxfa0EMNEEYWASORg,130694
|
|
53
|
+
justext/stoplists/Kurdish.txt,sha256=i_JGxLuB7sKMic7LkGO1yeZ-Pz7VBs0ufKCx4THbXpc,3530
|
|
54
|
+
justext/stoplists/Kyrgyz.txt,sha256=3zeDAJzevE18KPudxPlVcXDs4vCfncPY7t7CRPXe1GM,54696
|
|
55
|
+
justext/stoplists/Latin.txt,sha256=Wlypj79psOZe7KWHSzuU4W8JaPNSSQrGD20gmW2BVMI,14282
|
|
56
|
+
justext/stoplists/Latvian.txt,sha256=c5T2NdK0QGrboVgs8RjvXlNOs7GF4rsBF0Gf4QN8bE0,30561
|
|
57
|
+
justext/stoplists/Lithuanian.txt,sha256=4mrdiNdXFdYbTIAzPrv4Mty3W6tYpiSve6LzoVRLMdw,43497
|
|
58
|
+
justext/stoplists/Lombard.txt,sha256=gtlJ-1lw-xx9CZkbh_r4p3JnFWMrTjR0eXfyIeoDAZA,738
|
|
59
|
+
justext/stoplists/Low_Saxon.txt,sha256=F-e4Wj9AzwRMFfGP5IEZfa6AaRATrWMlacV14N1FCu4,1051
|
|
60
|
+
justext/stoplists/Luxembourgish.txt,sha256=Ef9WZThSkyHNpsPD8Eksla7zM4i04F_u2WNjjqHD3fA,2374
|
|
61
|
+
justext/stoplists/Macedonian.txt,sha256=q6q387ChY30JYfFyl_TJDNRgXbx_TKC4qm0PHbDcLwo,11949
|
|
62
|
+
justext/stoplists/Malay.txt,sha256=yW-l4AmfdoIK2qfLCCCsFqz96G3TXVL_K0hnduncBXk,6368
|
|
63
|
+
justext/stoplists/Malayalam.txt,sha256=n5UcMNnd4GzSV3syp2ZFIxZirBhBXkEgoEc3u62rKmE,308773
|
|
64
|
+
justext/stoplists/Maltese.txt,sha256=iB6gDNH3lQu_Mxqxj3IuwEj-GsjqNQS2dIiNWgyBLs4,11115
|
|
65
|
+
justext/stoplists/Marathi.txt,sha256=TzoMSMv3UCvJoEBQqZrCMNO7_-bwTP8GtxwadDyzkz4,37363
|
|
66
|
+
justext/stoplists/Neapolitan.txt,sha256=afmOZyMvOXPgDtKz7_BoRiCqmYax5BHv6z-yVj6j02Y,1749
|
|
67
|
+
justext/stoplists/Nepali.txt,sha256=hWvWXRzRTUdhP7V3G3wj0-Y9C7AEnqGW3eYcizGrqZc,25624
|
|
68
|
+
justext/stoplists/Newar.txt,sha256=aPKv7EQUuwMk7Yrn_yHNkE_pj_-94d7E8ACZed_xbFs,1461
|
|
69
|
+
justext/stoplists/Norwegian_Bokmal.txt,sha256=qbPXCGsFMSxvAZeoCa_m6Ez5nWvh1SwO5onMORkN6ro,2850
|
|
70
|
+
justext/stoplists/Norwegian_Nynorsk.txt,sha256=6RRSeP-fwJgqk11Hx4vx6PERSvtbtP7cnNO-ZczSTb4,2002
|
|
71
|
+
justext/stoplists/Occitan.txt,sha256=1JTkyWoUeBIiN79H49V1C9H-TETc5wP3NpGjXtS15g4,3109
|
|
72
|
+
justext/stoplists/Persian.txt,sha256=Xs6NR_tc3MWn59_iKYjbB6_H3F0BFpC_UU4MX4meang,4642
|
|
73
|
+
justext/stoplists/Piedmontese.txt,sha256=6PSYx533uyMAHMu1pYV0ALnONt4ZQR9JNlFrzF9NDYY,419
|
|
74
|
+
justext/stoplists/Polish.txt,sha256=nDVMQvEN3GnFqCVh3MoEVnQ_FSVJnhowknzH6yxdxv0,29632
|
|
75
|
+
justext/stoplists/Portuguese.txt,sha256=aH_llk--M7zY9OTLDG7yUnT9nx03TWocjLAVqnPkpPE,3261
|
|
76
|
+
justext/stoplists/Quechua.txt,sha256=vmoobb9pn0UW9TcWofdd5IBku6E0z_4tXdxBgSPDvzk,2237
|
|
77
|
+
justext/stoplists/Romanian.txt,sha256=UQlEMU-f-8bosvd8tGYMr3jw9pxq8bLe_IW6SkFsj-A,7067
|
|
78
|
+
justext/stoplists/Russian.txt,sha256=UfNZdYwjEFeTizI0mSY5fRtd61upsFTryeO7eYNm3Qg,77328
|
|
79
|
+
justext/stoplists/Samogitian.txt,sha256=om5JNKBt9f2_vv_70xKk0WcrdtxYDTVS9pDRGWc56Mw,14867
|
|
80
|
+
justext/stoplists/Serbian.txt,sha256=LKh_hHq43Vzi0RXNGD6FbTdJawTF083S3QChic9n2q4,21052
|
|
81
|
+
justext/stoplists/Serbo_Croatian.txt,sha256=a5Wo85d5bD8vistWGcnRx8vbxN1q5_bm6BQbjJaMr8Q,17311
|
|
82
|
+
justext/stoplists/Sicilian.txt,sha256=RY5nckmTD4eoOrEe1Te42aocsQN7pN7s5eMeD9fjY38,3167
|
|
83
|
+
justext/stoplists/Simple_English.txt,sha256=A4Zr2ezft629DljWRI8VrjIDxoeYNZwKkQ2S2-PLZ0I,1567
|
|
84
|
+
justext/stoplists/Slovak.txt,sha256=Li1oiYDhjHeoKnURMeqLjCSkIFFYfsN9_CTdql8IP3k,19351
|
|
85
|
+
justext/stoplists/Slovenian.txt,sha256=437xgZbJnHrgxMczPK4hBDBbgnBgpZDQyuOg8lltVXg,17179
|
|
86
|
+
justext/stoplists/Spanish.txt,sha256=bqgGKtClj78zcJXZvz9mr6XhW_vCh0TleteQuQQrSBM,1851
|
|
87
|
+
justext/stoplists/Sundanese.txt,sha256=eGgPn8PPDLf3uP6s73rqf2gZ7nZjEUlEr3SMNr_FZHk,5971
|
|
88
|
+
justext/stoplists/Swahili.txt,sha256=8gkOd-YezyLcAjIT8YEs2NQWXiWm5n51Ex2DM79F0cU,2406
|
|
89
|
+
justext/stoplists/Swedish.txt,sha256=9FqWzO7dBxgzOzKcTfwIPfq6f27fD9G4j0zOkzp48ZU,4870
|
|
90
|
+
justext/stoplists/Tagalog.txt,sha256=NFQZmxNII1l6mJSgJMYj-V0caq3YaDXlyED8UPFrfpc,980
|
|
91
|
+
justext/stoplists/Tamil.txt,sha256=2pSveFcjamZOZ7vEA3JFfDud06Mka4vjWAYeI2mo-DE,154218
|
|
92
|
+
justext/stoplists/Telugu.txt,sha256=APFR6tG_m4fPUqtH5dDhceYl1V3N24VqoadAqw5WB6k,95179
|
|
93
|
+
justext/stoplists/Turkish.txt,sha256=SCI-76ednwWUUoL4h3xsTkNADLMLWJM6krwMduNyBCQ,25673
|
|
94
|
+
justext/stoplists/Turkmen.txt,sha256=RCnrVv3ULkmniHYnzdfBF9BQonB_gV9eXnpVkwr43pU,27602
|
|
95
|
+
justext/stoplists/Ukrainian.txt,sha256=Gmq61Y3fF61G--VBjyyrAY8756eAZqxlX0gQtwR3lpw,75185
|
|
96
|
+
justext/stoplists/Urdu.txt,sha256=vINC72AF9Q6CwyZyhjowsZVVXI0BtGXOb762BrUktuQ,1900
|
|
97
|
+
justext/stoplists/Uzbek.txt,sha256=8V3Og4k-TH26eNfn1WHimbSxCopV9rsiANcdFVY96W0,51738
|
|
98
|
+
justext/stoplists/Vietnamese.txt,sha256=hFq4ajmroq1XV6o_C81zH7sYbiF239sQX8OfQdTU9Uc,1769
|
|
99
|
+
justext/stoplists/Volapuk.txt,sha256=X3YuzJ4nGNlNe5aIOzHzPAWGoFdr4rUz2MCgVAg8WQg,533
|
|
100
|
+
justext/stoplists/Walloon.txt,sha256=hleS3tlkZ_QaMlzMZKwO06jr5BCJuOaGtcwApE8o62Q,910
|
|
101
|
+
justext/stoplists/Waray_Waray.txt,sha256=fJB6tnT7q3lrpq-zYRE8NfA_FF_xitoYJtBDvaW7Uzg,47
|
|
102
|
+
justext/stoplists/Welsh.txt,sha256=H4X0b6Z62KKFNKPdOHulfFpdYQYXJ5iU5y1w_o8bVl0,3338
|
|
103
|
+
justext/stoplists/West_Frisian.txt,sha256=YMQmQ0XMrngTptVKGpRH5WKfUBfukUi44c-6J2x2Q5I,1353
|
|
104
|
+
justext/stoplists/Western_Panjabi.txt,sha256=PRztN-VdHQFtmQyMvMjUll5yALZNfGGd_clrUZA_WNw,2230
|
|
105
|
+
justext/stoplists/Yoruba.txt,sha256=q4yIixQMjBCBxD3lr-klBVa4SsVJp4U6OoBskNDZf20,1748
|
|
106
|
+
justext/utils.py,sha256=1Gq-SqNvx3_DcUxe4RhBkK0BI0HXqA-rY4Lf1UcpGfs,2217
|
|
107
|
+
justext-4.0.0.dist-info/licenses/LICENSE.rst,sha256=1xwLIjT9IunylZhu2PIs9CW3pMJpJI0hTri9oqMucXk,1339
|
|
108
|
+
justext-4.0.0.dist-info/WHEEL,sha256=-gI5GRFdiNNn2CFz-ptlExISMINC-k8bFxeojAlHbrM,81
|
|
109
|
+
justext-4.0.0.dist-info/METADATA,sha256=vaJT91MGFRyxXvBaYiTCayjMd4kI54u8VnDPJvhewF8,4658
|
|
110
|
+
justext-4.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Copyright (c) 2011, Jan Pomikalek <jan.pomikalek@gmail.com>
|
|
2
|
+
Copyright (c) 2013, Michal Belica
|
|
3
|
+
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
7
|
+
are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND ANY
|
|
16
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
17
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
18
|
+
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
|
|
19
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
20
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
21
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
22
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
23
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
24
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|