maalfrid_toolkit 1.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/CHANGES +29 -0
- justext/LICENSE +23 -0
- justext/README +9 -0
- justext/__init__.py +12 -0
- justext/core.py +793 -0
- maalfrid_toolkit/.directory +6 -0
- maalfrid_toolkit/__init__.py +0 -0
- maalfrid_toolkit/config.py +43 -0
- maalfrid_toolkit/crawl.py +279 -0
- maalfrid_toolkit/crawljobs/example.com.yaml +16 -0
- maalfrid_toolkit/crawljobs/wget_warc.conf +13 -0
- maalfrid_toolkit/crawljobs/wget_warc.conf.example +13 -0
- maalfrid_toolkit/db.py +470 -0
- maalfrid_toolkit/htmlclean.py +75 -0
- maalfrid_toolkit/langdet.py +161 -0
- maalfrid_toolkit/logs/test-prefix_wget/test-prefix_wget-20250505_140310-ea7bcba3-b048-4ee3-afb9-84e86fc6d87a-nb_no.jsonl +2 -0
- maalfrid_toolkit/logs/test-prefix_wget/test-prefix_wget-20250505_140415-cca4057a-4375-4772-9aa7-92885449eab1-nb_no.jsonl +2 -0
- maalfrid_toolkit/logs/test-prefix_wget/test-prefix_wget-20250505_141805-a62a3bfa-81ff-46c0-9f03-4cc3a238e944-nb_no.jsonl +2 -0
- maalfrid_toolkit/logs/test-prefix_wget/test-prefix_wget-20250505_143500-22bc8b51-d925-403d-abae-ae41fa3283f1-nb_no.jsonl +2 -0
- maalfrid_toolkit/logs/test-prefix_wget/test-prefix_wget-20250505_143629-ce8c97cc-405e-42c0-bf14-64a50db9ea34-nb_no.jsonl +2 -0
- maalfrid_toolkit/models/README.md +7 -0
- maalfrid_toolkit/models/language_filter/unique_stop_words_nno.txt +179 -0
- maalfrid_toolkit/models/language_filter/unique_stop_words_nob.txt +171 -0
- maalfrid_toolkit/models/stoplists_justext/Albanian.txt +529 -0
- maalfrid_toolkit/models/stoplists_justext/Arabic.txt +2996 -0
- maalfrid_toolkit/models/stoplists_justext/Armenian.txt +2943 -0
- maalfrid_toolkit/models/stoplists_justext/Belarusian.txt +4456 -0
- maalfrid_toolkit/models/stoplists_justext/Bengali.txt +2794 -0
- maalfrid_toolkit/models/stoplists_justext/Bosnian.txt +2234 -0
- maalfrid_toolkit/models/stoplists_justext/Bulgarian.txt +3002 -0
- maalfrid_toolkit/models/stoplists_justext/Chinese_Cantonese.txt +9937 -0
- maalfrid_toolkit/models/stoplists_justext/Chinese_Simplified.txt +9968 -0
- maalfrid_toolkit/models/stoplists_justext/Chinese_Traditional.txt +9964 -0
- maalfrid_toolkit/models/stoplists_justext/Croatian.txt +2463 -0
- maalfrid_toolkit/models/stoplists_justext/Czech.txt +2659 -0
- maalfrid_toolkit/models/stoplists_justext/Danish.txt +2801 -0
- maalfrid_toolkit/models/stoplists_justext/Dutch.txt +290 -0
- maalfrid_toolkit/models/stoplists_justext/English.txt +2846 -0
- maalfrid_toolkit/models/stoplists_justext/Esperanto.txt +564 -0
- maalfrid_toolkit/models/stoplists_justext/Estonian.txt +2589 -0
- maalfrid_toolkit/models/stoplists_justext/Finnish.txt +7316 -0
- maalfrid_toolkit/models/stoplists_justext/French.txt +2749 -0
- maalfrid_toolkit/models/stoplists_justext/Georgian.txt +5530 -0
- maalfrid_toolkit/models/stoplists_justext/German.txt +3085 -0
- maalfrid_toolkit/models/stoplists_justext/Greek.txt +631 -0
- maalfrid_toolkit/models/stoplists_justext/Hebrew.txt +4285 -0
- maalfrid_toolkit/models/stoplists_justext/Hindi.txt +2485 -0
- maalfrid_toolkit/models/stoplists_justext/Hungarian.txt +3446 -0
- maalfrid_toolkit/models/stoplists_justext/Icelandic.txt +721 -0
- maalfrid_toolkit/models/stoplists_justext/Indonesian.txt +1808 -0
- maalfrid_toolkit/models/stoplists_justext/Irish.txt +2023 -0
- maalfrid_toolkit/models/stoplists_justext/Italian.txt +2500 -0
- maalfrid_toolkit/models/stoplists_justext/Korean.txt +3051 -0
- maalfrid_toolkit/models/stoplists_justext/Kurdish.txt +576 -0
- maalfrid_toolkit/models/stoplists_justext/Latin.txt +1904 -0
- maalfrid_toolkit/models/stoplists_justext/Latvian.txt +3611 -0
- maalfrid_toolkit/models/stoplists_justext/Lithuanian.txt +4964 -0
- maalfrid_toolkit/models/stoplists_justext/Norwegian_NRK.txt +674 -0
- maalfrid_toolkit/models/stoplists_justext/Persian.txt +2986 -0
- maalfrid_toolkit/models/stoplists_justext/Polish.txt +3570 -0
- maalfrid_toolkit/models/stoplists_justext/Portuguese.txt +2500 -0
- maalfrid_toolkit/models/stoplists_justext/Romanian.txt +993 -0
- maalfrid_toolkit/models/stoplists_justext/Russian.txt +2115 -0
- maalfrid_toolkit/models/stoplists_justext/Serbian.txt +1700 -0
- maalfrid_toolkit/models/stoplists_justext/Serbo_Croatian.txt +2418 -0
- maalfrid_toolkit/models/stoplists_justext/Slovak.txt +2467 -0
- maalfrid_toolkit/models/stoplists_justext/Slovenian.txt +2343 -0
- maalfrid_toolkit/models/stoplists_justext/Somali.txt +304 -0
- maalfrid_toolkit/models/stoplists_justext/Spanish.txt +2500 -0
- maalfrid_toolkit/models/stoplists_justext/Swahili.txt +385 -0
- maalfrid_toolkit/models/stoplists_justext/Swedish.txt +737 -0
- maalfrid_toolkit/models/stoplists_justext/Tagalog.txt +1603 -0
- maalfrid_toolkit/models/stoplists_justext/Tamil.txt +2804 -0
- maalfrid_toolkit/models/stoplists_justext/Thai.txt +2998 -0
- maalfrid_toolkit/models/stoplists_justext/Turkish.txt +3082 -0
- maalfrid_toolkit/models/stoplists_justext/Ukrainian.txt +5065 -0
- maalfrid_toolkit/models/stoplists_justext/Urdu.txt +1994 -0
- maalfrid_toolkit/models/stoplists_justext/Vietnamese.txt +1948 -0
- maalfrid_toolkit/models/stoplists_justext/sma.txt +500 -0
- maalfrid_toolkit/models/stoplists_justext/sme.txt +500 -0
- maalfrid_toolkit/models/stoplists_justext/smj.txt +500 -0
- maalfrid_toolkit/models/stoplists_justext/smn.txt +500 -0
- maalfrid_toolkit/models/stoplists_justext/sms.txt +500 -0
- maalfrid_toolkit/msword.py +71 -0
- maalfrid_toolkit/notram_avisleser.py +916 -0
- maalfrid_toolkit/pipeline.py +167 -0
- maalfrid_toolkit/simhash_docs.py +61 -0
- maalfrid_toolkit/utils.py +68 -0
- maalfrid_toolkit/warc/test-prefix_wget/finished/.directory +6 -0
- maalfrid_toolkit/warc_tools.py +224 -0
- maalfrid_toolkit-1.0.0.dist-info/METADATA +129 -0
- maalfrid_toolkit-1.0.0.dist-info/RECORD +96 -0
- maalfrid_toolkit-1.0.0.dist-info/WHEEL +4 -0
- maalfrid_toolkit-1.0.0.dist-info/entry_points.txt +4 -0
- maalfrid_toolkit-1.0.0.dist-info/licenses/LICENSE.txt +675 -0
- maalfrid_toolkit-1.0.0.dist-info/licenses/src/justext/LICENSE +23 -0
justext/CHANGES
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
= Changelog for jusText =
|
|
2
|
+
|
|
3
|
+
== v3.0 (06 Feb 2019) ==
|
|
4
|
+
|
|
5
|
+
== v1.5 (05 Feb 2019) ==
|
|
6
|
+
* Python 3.6 & Python 2.7 compatible
|
|
7
|
+
* Joining text separated by <br/> or inline tags prevented
|
|
8
|
+
* Lowercased stoplist
|
|
9
|
+
|
|
10
|
+
== v1.4 (24 Aug 2017) ==
|
|
11
|
+
* max_good_distance, a new context classification parameter
|
|
12
|
+
* Web demo
|
|
13
|
+
|
|
14
|
+
== v1.3 (30 Jun 2017) ==
|
|
15
|
+
* Filter out HTML(5) elements
|
|
16
|
+
* Preprocess split to get_html_root and preprocess_html_root
|
|
17
|
+
* See the git log for more
|
|
18
|
+
|
|
19
|
+
== v1.2 (8 Aug 2011) ==
|
|
20
|
+
* FEATURE: Character counts used instead of word counts where possible in
|
|
21
|
+
order to make the algorithm work well in the language independent
|
|
22
|
+
mode (without a stoplist) for languages where counting words is
|
|
23
|
+
not easy (Japanese, Chinese, Thai, etc).
|
|
24
|
+
* BUG FIX: More robust parsing of meta tags containing the information about
|
|
25
|
+
used charset.
|
|
26
|
+
* BUG FIX: Corrected decoding of HTML entities € to Ÿ
|
|
27
|
+
|
|
28
|
+
== v1.1 (9 Mar 2011) ==
|
|
29
|
+
* First public release.
|
justext/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Copyright (c) 2011, Jan Pomikalek <jan.pomikalek@gmail.com>
|
|
2
|
+
|
|
3
|
+
All rights reserved.
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without modification,
|
|
6
|
+
are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
+
this list of conditions and the following disclaimer in the documentation
|
|
12
|
+
and/or other materials provided with the distribution.
|
|
13
|
+
|
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ''AS IS'' AND ANY
|
|
15
|
+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
16
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
17
|
+
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
|
|
18
|
+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
19
|
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
20
|
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
21
|
+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
22
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
23
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
justext/README
ADDED
justext/__init__.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Copyright (c) 2011 Jan Pomikalek
|
|
2
|
+
# All rights reserved.
|
|
3
|
+
#
|
|
4
|
+
# This software is licensed as described in the file COPYING, which
|
|
5
|
+
# you should have received as part of this distribution.
|
|
6
|
+
|
|
7
|
+
from justext.core import justext, get_stoplists, get_stoplist, main
|
|
8
|
+
|
|
9
|
+
try:
|
|
10
|
+
__version__ = __import__('pkg_resources').get_distribution('justext').version
|
|
11
|
+
except:
|
|
12
|
+
__version__ = '?'
|