ltk-data 1.0.0__tar.gz
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.
- ltk_data-1.0.0/MANIFEST.in +14 -0
- ltk_data-1.0.0/PKG-INFO +18 -0
- ltk_data-1.0.0/README +1 -0
- ltk_data-1.0.0/ltk_data/__init__.py +26 -0
- ltk_data-1.0.0/ltk_data/compile.py +23 -0
- ltk_data-1.0.0/ltk_data/corpora/__init__.py +21 -0
- ltk_data-1.0.0/ltk_data/corpora/crubadan/README +35 -0
- ltk_data-1.0.0/ltk_data/corpora/crubadan/de-3grams.txt +10722 -0
- ltk_data-1.0.0/ltk_data/corpora/crubadan/en-3grams.txt +11900 -0
- ltk_data-1.0.0/ltk_data/corpora/crubadan/es-3grams.txt +894 -0
- ltk_data-1.0.0/ltk_data/corpora/crubadan/fr-3grams.txt +9696 -0
- ltk_data-1.0.0/ltk_data/corpora/crubadan/table.txt +4 -0
- ltk_data-1.0.0/ltk_data/corpora/names/README +16 -0
- ltk_data-1.0.0/ltk_data/corpora/names/family +18 -0
- ltk_data-1.0.0/ltk_data/corpora/names/female +5001 -0
- ltk_data-1.0.0/ltk_data/corpora/names/male +2943 -0
- ltk_data-1.0.0/ltk_data/corpora/stopwords/README +32 -0
- ltk_data-1.0.0/ltk_data/corpora/stopwords/english +179 -0
- ltk_data-1.0.0/ltk_data/corpora/stopwords/french +157 -0
- ltk_data-1.0.0/ltk_data/corpora/stopwords/german +232 -0
- ltk_data-1.0.0/ltk_data/corpora/words/README +4 -0
- ltk_data-1.0.0/ltk_data/corpora/words/en +235886 -0
- ltk_data-1.0.0/ltk_data/corpora/words/en-basic +850 -0
- ltk_data-1.0.0/ltk_data/lookup.py +14 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/Close_Punctuation.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/Currency_Symbol.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/IsAlnum.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/IsAlpha.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/IsLower.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/IsN.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/IsSc.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/IsSo.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/IsUpper.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/Line_Separator.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/Number.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/Open_Punctuation.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/Punctuation.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/Separator.txt +1 -0
- ltk_data-1.0.0/ltk_data/misc/perluniprops/Symbol.txt +1 -0
- ltk_data-1.0.0/ltk_data/path.py +22 -0
- ltk_data-1.0.0/ltk_data/tokenizers/punkt/PY3/README +98 -0
- ltk_data-1.0.0/ltk_data/tokenizers/punkt/README +98 -0
- ltk_data-1.0.0/ltk_data/utils.py +44 -0
- ltk_data-1.0.0/ltk_data.egg-info/PKG-INFO +18 -0
- ltk_data-1.0.0/ltk_data.egg-info/SOURCES.txt +49 -0
- ltk_data-1.0.0/ltk_data.egg-info/dependency_links.txt +1 -0
- ltk_data-1.0.0/ltk_data.egg-info/requires.txt +5 -0
- ltk_data-1.0.0/ltk_data.egg-info/top_level.txt +1 -0
- ltk_data-1.0.0/pyproject.toml +92 -0
- ltk_data-1.0.0/setup.cfg +4 -0
- ltk_data-1.0.0/tests/test_setup.py +29 -0
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
graft ltk_data/chunkers
|
|
11
|
+
graft ltk_data/corpora
|
|
12
|
+
graft ltk_data/misc
|
|
13
|
+
graft ltk_data/taggers
|
|
14
|
+
graft ltk_data/tokenizers
|
ltk_data-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ltk_data
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Author-email: Helmut Konrad Schewe <helmutus@outlook.com>
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://github.com/anaticulae/ltk_data
|
|
7
|
+
Project-URL: Repository, https://github.com/anaticulae/ltk_data
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
11
|
+
Requires-Python: >=3.12
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
Requires-Dist: utilo<3.0.0,>=2.107.4
|
|
14
|
+
Requires-Dist: nltk<4.0.0,>=3.9.0
|
|
15
|
+
Provides-Extra: dev
|
|
16
|
+
Requires-Dist: utilotest<2.0.0,>=1.0.1; extra == "dev"
|
|
17
|
+
|
|
18
|
+
# nltkdata
|
ltk_data-1.0.0/README
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# nltkdata
|
|
@@ -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)
|
|
@@ -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
|
+
|