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.
Files changed (96) hide show
  1. justext/CHANGES +29 -0
  2. justext/LICENSE +23 -0
  3. justext/README +9 -0
  4. justext/__init__.py +12 -0
  5. justext/core.py +793 -0
  6. maalfrid_toolkit/.directory +6 -0
  7. maalfrid_toolkit/__init__.py +0 -0
  8. maalfrid_toolkit/config.py +43 -0
  9. maalfrid_toolkit/crawl.py +279 -0
  10. maalfrid_toolkit/crawljobs/example.com.yaml +16 -0
  11. maalfrid_toolkit/crawljobs/wget_warc.conf +13 -0
  12. maalfrid_toolkit/crawljobs/wget_warc.conf.example +13 -0
  13. maalfrid_toolkit/db.py +470 -0
  14. maalfrid_toolkit/htmlclean.py +75 -0
  15. maalfrid_toolkit/langdet.py +161 -0
  16. maalfrid_toolkit/logs/test-prefix_wget/test-prefix_wget-20250505_140310-ea7bcba3-b048-4ee3-afb9-84e86fc6d87a-nb_no.jsonl +2 -0
  17. maalfrid_toolkit/logs/test-prefix_wget/test-prefix_wget-20250505_140415-cca4057a-4375-4772-9aa7-92885449eab1-nb_no.jsonl +2 -0
  18. maalfrid_toolkit/logs/test-prefix_wget/test-prefix_wget-20250505_141805-a62a3bfa-81ff-46c0-9f03-4cc3a238e944-nb_no.jsonl +2 -0
  19. maalfrid_toolkit/logs/test-prefix_wget/test-prefix_wget-20250505_143500-22bc8b51-d925-403d-abae-ae41fa3283f1-nb_no.jsonl +2 -0
  20. maalfrid_toolkit/logs/test-prefix_wget/test-prefix_wget-20250505_143629-ce8c97cc-405e-42c0-bf14-64a50db9ea34-nb_no.jsonl +2 -0
  21. maalfrid_toolkit/models/README.md +7 -0
  22. maalfrid_toolkit/models/language_filter/unique_stop_words_nno.txt +179 -0
  23. maalfrid_toolkit/models/language_filter/unique_stop_words_nob.txt +171 -0
  24. maalfrid_toolkit/models/stoplists_justext/Albanian.txt +529 -0
  25. maalfrid_toolkit/models/stoplists_justext/Arabic.txt +2996 -0
  26. maalfrid_toolkit/models/stoplists_justext/Armenian.txt +2943 -0
  27. maalfrid_toolkit/models/stoplists_justext/Belarusian.txt +4456 -0
  28. maalfrid_toolkit/models/stoplists_justext/Bengali.txt +2794 -0
  29. maalfrid_toolkit/models/stoplists_justext/Bosnian.txt +2234 -0
  30. maalfrid_toolkit/models/stoplists_justext/Bulgarian.txt +3002 -0
  31. maalfrid_toolkit/models/stoplists_justext/Chinese_Cantonese.txt +9937 -0
  32. maalfrid_toolkit/models/stoplists_justext/Chinese_Simplified.txt +9968 -0
  33. maalfrid_toolkit/models/stoplists_justext/Chinese_Traditional.txt +9964 -0
  34. maalfrid_toolkit/models/stoplists_justext/Croatian.txt +2463 -0
  35. maalfrid_toolkit/models/stoplists_justext/Czech.txt +2659 -0
  36. maalfrid_toolkit/models/stoplists_justext/Danish.txt +2801 -0
  37. maalfrid_toolkit/models/stoplists_justext/Dutch.txt +290 -0
  38. maalfrid_toolkit/models/stoplists_justext/English.txt +2846 -0
  39. maalfrid_toolkit/models/stoplists_justext/Esperanto.txt +564 -0
  40. maalfrid_toolkit/models/stoplists_justext/Estonian.txt +2589 -0
  41. maalfrid_toolkit/models/stoplists_justext/Finnish.txt +7316 -0
  42. maalfrid_toolkit/models/stoplists_justext/French.txt +2749 -0
  43. maalfrid_toolkit/models/stoplists_justext/Georgian.txt +5530 -0
  44. maalfrid_toolkit/models/stoplists_justext/German.txt +3085 -0
  45. maalfrid_toolkit/models/stoplists_justext/Greek.txt +631 -0
  46. maalfrid_toolkit/models/stoplists_justext/Hebrew.txt +4285 -0
  47. maalfrid_toolkit/models/stoplists_justext/Hindi.txt +2485 -0
  48. maalfrid_toolkit/models/stoplists_justext/Hungarian.txt +3446 -0
  49. maalfrid_toolkit/models/stoplists_justext/Icelandic.txt +721 -0
  50. maalfrid_toolkit/models/stoplists_justext/Indonesian.txt +1808 -0
  51. maalfrid_toolkit/models/stoplists_justext/Irish.txt +2023 -0
  52. maalfrid_toolkit/models/stoplists_justext/Italian.txt +2500 -0
  53. maalfrid_toolkit/models/stoplists_justext/Korean.txt +3051 -0
  54. maalfrid_toolkit/models/stoplists_justext/Kurdish.txt +576 -0
  55. maalfrid_toolkit/models/stoplists_justext/Latin.txt +1904 -0
  56. maalfrid_toolkit/models/stoplists_justext/Latvian.txt +3611 -0
  57. maalfrid_toolkit/models/stoplists_justext/Lithuanian.txt +4964 -0
  58. maalfrid_toolkit/models/stoplists_justext/Norwegian_NRK.txt +674 -0
  59. maalfrid_toolkit/models/stoplists_justext/Persian.txt +2986 -0
  60. maalfrid_toolkit/models/stoplists_justext/Polish.txt +3570 -0
  61. maalfrid_toolkit/models/stoplists_justext/Portuguese.txt +2500 -0
  62. maalfrid_toolkit/models/stoplists_justext/Romanian.txt +993 -0
  63. maalfrid_toolkit/models/stoplists_justext/Russian.txt +2115 -0
  64. maalfrid_toolkit/models/stoplists_justext/Serbian.txt +1700 -0
  65. maalfrid_toolkit/models/stoplists_justext/Serbo_Croatian.txt +2418 -0
  66. maalfrid_toolkit/models/stoplists_justext/Slovak.txt +2467 -0
  67. maalfrid_toolkit/models/stoplists_justext/Slovenian.txt +2343 -0
  68. maalfrid_toolkit/models/stoplists_justext/Somali.txt +304 -0
  69. maalfrid_toolkit/models/stoplists_justext/Spanish.txt +2500 -0
  70. maalfrid_toolkit/models/stoplists_justext/Swahili.txt +385 -0
  71. maalfrid_toolkit/models/stoplists_justext/Swedish.txt +737 -0
  72. maalfrid_toolkit/models/stoplists_justext/Tagalog.txt +1603 -0
  73. maalfrid_toolkit/models/stoplists_justext/Tamil.txt +2804 -0
  74. maalfrid_toolkit/models/stoplists_justext/Thai.txt +2998 -0
  75. maalfrid_toolkit/models/stoplists_justext/Turkish.txt +3082 -0
  76. maalfrid_toolkit/models/stoplists_justext/Ukrainian.txt +5065 -0
  77. maalfrid_toolkit/models/stoplists_justext/Urdu.txt +1994 -0
  78. maalfrid_toolkit/models/stoplists_justext/Vietnamese.txt +1948 -0
  79. maalfrid_toolkit/models/stoplists_justext/sma.txt +500 -0
  80. maalfrid_toolkit/models/stoplists_justext/sme.txt +500 -0
  81. maalfrid_toolkit/models/stoplists_justext/smj.txt +500 -0
  82. maalfrid_toolkit/models/stoplists_justext/smn.txt +500 -0
  83. maalfrid_toolkit/models/stoplists_justext/sms.txt +500 -0
  84. maalfrid_toolkit/msword.py +71 -0
  85. maalfrid_toolkit/notram_avisleser.py +916 -0
  86. maalfrid_toolkit/pipeline.py +167 -0
  87. maalfrid_toolkit/simhash_docs.py +61 -0
  88. maalfrid_toolkit/utils.py +68 -0
  89. maalfrid_toolkit/warc/test-prefix_wget/finished/.directory +6 -0
  90. maalfrid_toolkit/warc_tools.py +224 -0
  91. maalfrid_toolkit-1.0.0.dist-info/METADATA +129 -0
  92. maalfrid_toolkit-1.0.0.dist-info/RECORD +96 -0
  93. maalfrid_toolkit-1.0.0.dist-info/WHEEL +4 -0
  94. maalfrid_toolkit-1.0.0.dist-info/entry_points.txt +4 -0
  95. maalfrid_toolkit-1.0.0.dist-info/licenses/LICENSE.txt +675 -0
  96. 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 &#128; to &#159;
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
@@ -0,0 +1,9 @@
1
+ # jusText
2
+
3
+ ## Prerequisites:
4
+
5
+ lxml (>=4.1)
6
+
7
+ To install the package type: `python setup.py install`
8
+
9
+ For usage information see: `justext --help`
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__ = '?'