ltk-data 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 (44) hide show
  1. ltk_data/__init__.py +26 -0
  2. ltk_data/compile.py +23 -0
  3. ltk_data/corpora/__init__.py +21 -0
  4. ltk_data/corpora/crubadan/README +35 -0
  5. ltk_data/corpora/crubadan/de-3grams.txt +10722 -0
  6. ltk_data/corpora/crubadan/en-3grams.txt +11900 -0
  7. ltk_data/corpora/crubadan/es-3grams.txt +894 -0
  8. ltk_data/corpora/crubadan/fr-3grams.txt +9696 -0
  9. ltk_data/corpora/crubadan/table.txt +4 -0
  10. ltk_data/corpora/names/README +16 -0
  11. ltk_data/corpora/names/family +18 -0
  12. ltk_data/corpora/names/female +5001 -0
  13. ltk_data/corpora/names/male +2943 -0
  14. ltk_data/corpora/stopwords/README +32 -0
  15. ltk_data/corpora/stopwords/english +179 -0
  16. ltk_data/corpora/stopwords/french +157 -0
  17. ltk_data/corpora/stopwords/german +232 -0
  18. ltk_data/corpora/words/README +4 -0
  19. ltk_data/corpora/words/en +235886 -0
  20. ltk_data/corpora/words/en-basic +850 -0
  21. ltk_data/lookup.py +14 -0
  22. ltk_data/misc/perluniprops/Close_Punctuation.txt +1 -0
  23. ltk_data/misc/perluniprops/Currency_Symbol.txt +1 -0
  24. ltk_data/misc/perluniprops/IsAlnum.txt +1 -0
  25. ltk_data/misc/perluniprops/IsAlpha.txt +1 -0
  26. ltk_data/misc/perluniprops/IsLower.txt +1 -0
  27. ltk_data/misc/perluniprops/IsN.txt +1 -0
  28. ltk_data/misc/perluniprops/IsSc.txt +1 -0
  29. ltk_data/misc/perluniprops/IsSo.txt +1 -0
  30. ltk_data/misc/perluniprops/IsUpper.txt +1 -0
  31. ltk_data/misc/perluniprops/Line_Separator.txt +1 -0
  32. ltk_data/misc/perluniprops/Number.txt +1 -0
  33. ltk_data/misc/perluniprops/Open_Punctuation.txt +1 -0
  34. ltk_data/misc/perluniprops/Punctuation.txt +1 -0
  35. ltk_data/misc/perluniprops/Separator.txt +1 -0
  36. ltk_data/misc/perluniprops/Symbol.txt +1 -0
  37. ltk_data/path.py +22 -0
  38. ltk_data/tokenizers/punkt/PY3/README +98 -0
  39. ltk_data/tokenizers/punkt/README +98 -0
  40. ltk_data/utils.py +44 -0
  41. ltk_data-1.0.0.dist-info/METADATA +18 -0
  42. ltk_data-1.0.0.dist-info/RECORD +44 -0
  43. ltk_data-1.0.0.dist-info/WHEEL +5 -0
  44. ltk_data-1.0.0.dist-info/top_level.txt +1 -0
ltk_data/__init__.py ADDED
@@ -0,0 +1,26 @@
1
+ # =============================================================================
2
+ # C O P Y R I G H T
3
+ # -----------------------------------------------------------------------------
4
+ # Copyright (c) 2021-2022 by Helmut Konrad Fahrendholz. All rights reserved.
5
+ # This file is property of Helmut Konrad Fahrendholz. Any unauthorized copy,
6
+ # use or distribution is an offensive act against international law and may
7
+ # be prosecuted under federal law. Its content is company confidential.
8
+ # =============================================================================
9
+
10
+ import os
11
+ from importlib.metadata import version as metaversion
12
+
13
+ __version__ = metaversion('ltk_data')
14
+
15
+ ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
16
+
17
+ # pylint:disable=wrong-import-position
18
+ from ltk_data.corpora import * # isort:skip
19
+ from ltk_data.utils import pickler # isort:skip
20
+ from ltk_data.utils import load_pickle # isort:skip
21
+ from ltk_data.path import add_nltk_path # isort:skip
22
+
23
+ # nltk requires env setup before first import
24
+ ltk_data = os.path.join(ROOT, 'ltk_data')
25
+
26
+ add_nltk_path(ltk_data)
ltk_data/compile.py ADDED
@@ -0,0 +1,23 @@
1
+ # =============================================================================
2
+ # C O P Y R I G H T
3
+ # -----------------------------------------------------------------------------
4
+ # Copyright (c) 2021-2022 by Helmut Konrad Fahrendholz. All rights reserved.
5
+ # This file is property of Helmut Konrad Fahrendholz. Any unauthorized copy,
6
+ # use or distribution is an offensive act against international law and may
7
+ # be prosecuted under federal law. Its content is company confidential.
8
+ # =============================================================================
9
+
10
+ import utilo
11
+
12
+ import ltk_data
13
+
14
+
15
+ def compile_names():
16
+ utilo.log('compile names')
17
+ ltk_data.pickler(ltk_data.NAMES_FAMILY)
18
+ ltk_data.pickler(ltk_data.NAMES_FEMALE)
19
+ ltk_data.pickler(ltk_data.NAMES_MALE)
20
+
21
+
22
+ if __name__ == "__main__":
23
+ compile_names()
@@ -0,0 +1,21 @@
1
+ # =============================================================================
2
+ # C O P Y R I G H T
3
+ # -----------------------------------------------------------------------------
4
+ # Copyright (c) 2021-2022 by Helmut Konrad Fahrendholz. All rights reserved.
5
+ # This file is property of Helmut Konrad Fahrendholz. Any unauthorized copy,
6
+ # use or distribution is an offensive act against international law and may
7
+ # be prosecuted under federal law. Its content is company confidential.
8
+ # =============================================================================
9
+
10
+ import os
11
+
12
+ import ltk_data
13
+
14
+ CORPORA = os.path.join(ltk_data.ROOT, 'ltk_data/corpora')
15
+
16
+ NAMES = os.path.join(CORPORA, 'names')
17
+ NAMES_MALE = os.path.join(NAMES, 'male')
18
+ NAMES_FEMALE = os.path.join(NAMES, 'female')
19
+ NAMES_FAMILY = os.path.join(NAMES, 'family')
20
+
21
+ STOPWORDS = os.path.join(CORPORA, 'stopwords')
@@ -0,0 +1,35 @@
1
+ Language Id Corpus
2
+ Kevin Scannell
3
+
4
+ This directory contains 3-gram frequencies for 449 writing systems
5
+ gathered by the web crawler "An Crúbadán", as of 11 April 2010.
6
+ See http://borel.slu.edu/crubadan/ for more information.
7
+
8
+ The web crawler works at the level of "writing systems" vs. "languages",
9
+ so for example Serbian Cyrillic and Serbian Latin are treated
10
+ separately, as are Portuguese as spoken in Brazil vs. Portugal, etc.
11
+ The 3-gram files are named using 2- or 3-letter "writing system codes"
12
+ that were never intended to be exposed to the outside world.
13
+ We are working on establishing a mapping between our codes and
14
+ the writing systems laid out in Oliver Streiter's XNL-RDF database.
15
+
16
+ The file table.txt lists all 449 writing systems. The first column
17
+ contains the internal Crúbadán code, the second column contains the
18
+ ISO 639-3 code for the language represented by the writing system, and
19
+ the third column is an English language description.
20
+
21
+ Copyright 2010 Kevin P. Scannell <kscanne at gmail dot com>
22
+
23
+ This program is free software: you can redistribute it and/or modify
24
+ it under the terms of the GNU General Public License as published by
25
+ the Free Software Foundation, either version 3 of the License, or
26
+ (at your option) any later version.
27
+
28
+ This program is distributed in the hope that it will be useful,
29
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
30
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31
+ GNU General Public License for more details.
32
+
33
+ You should have received a copy of the GNU General Public License
34
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
35
+