rulemma 0.5.2__py3-none-win_amd64.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.
rulemma/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Dmitry Korshikov and Gemini (Коршиков Дмитрий и Gemini)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,108 @@
1
+ THIRD-PARTY LICENSES AND DATA ATTRIBUTION FOR RULEMMA
2
+ =====================================================
3
+
4
+ The source code of `rulemma` (Go engine, C-ABI, Python bindings, CLI, WebAssembly
5
+ bridge, dictionary build scripts, tests, and examples) is licensed under the MIT
6
+ License (see `LICENSE`).
7
+
8
+ Binary distributions (wheels, shared libraries, WebAssembly builds) and bundled
9
+ dictionary tables include or derive from third-party components and open linguistic
10
+ resources listed below.
11
+
12
+ ------------------------------------------------------------------------
13
+ 1. Derived Russian Morphological & Dictionary Tables (`data/*.tsv.gz`)
14
+ ------------------------------------------------------------------------
15
+ Files:
16
+ - data/lemmas.tsv.gz
17
+ - data/adj_forms.tsv.gz
18
+ - data/types.tsv.gz
19
+ - data/adj_noun.tsv.gz
20
+ - data/morph.tsv.gz
21
+ - data/alt_lemmas.tsv.gz
22
+ - data/paradigms.tsv.gz
23
+
24
+ Upstream source:
25
+ - OpenCorpora Russian Morphological Dictionary (https://opencorpora.org/)
26
+ accessed via `pymorphy3-dicts-ru` (2.4.417150.4580142) / OpenCorpora XML.
27
+
28
+ Upstream license:
29
+ - Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
30
+ https://creativecommons.org/licenses/by-sa/3.0/
31
+
32
+ Transformations applied by `tools/build_dicts.py` and `tools/build_adj_noun.py`:
33
+ - Filtered Cyrillic vocabulary and cleaned OOV predictor artifacts, archaic
34
+ homonyms, and spurious proper-noun collisions;
35
+ - Normalized full adjectival participles (`PRTF`) to masculine singular
36
+ nominative forms and expanded agreement paradigms (`adj_forms.tsv.gz`);
37
+ - Encoded compact 32-bit grammatical tag bitmasks (`morph.tsv.gz`), homonym
38
+ candidate lists (`alt_lemmas.tsv.gz`), and deduplicated suffix inflection
39
+ paradigms (`paradigms.tsv.gz`);
40
+ - Merged original MIT-licensed modern Russian vocabulary (`tools/modern_ru_lexicon.py`)
41
+ and general-language overrides (`data/overrides.tsv`).
42
+
43
+ Redistribution notice:
44
+ - Any redistribution of the derived dictionary tables in `data/*.tsv.gz` must
45
+ preserve attribution to OpenCorpora and comply with CC BY-SA 3.0 for the
46
+ OpenCorpora-derived portions of those tables.
47
+
48
+ ------------------------------------------------------------------------
49
+ 2. Original Overrides & Modern Russian Lexicon
50
+ ------------------------------------------------------------------------
51
+ Files:
52
+ - data/overrides.tsv
53
+ - data/manifest.json
54
+ - tools/modern_ru_lexicon.py
55
+
56
+ License:
57
+ - MIT License (Copyright (c) 2026 Dmitry Korshikov, see `LICENSE`).
58
+
59
+ ------------------------------------------------------------------------
60
+ 3. External Evaluation References (Not Bundled in Packages)
61
+ ------------------------------------------------------------------------
62
+ - Unicode CLDR 49 (`common/main/ru.xml`, https://cldr.unicode.org/) —
63
+ Unicode License v3 (`Unicode-3.0`, https://www.unicode.org/license.txt).
64
+ Used strictly as an offline reference to verify SI/IT unit counting rules
65
+ in `tests/`; no CLDR data files are bundled in wheels, sdist, or WASM.
66
+ - Universal Dependencies Russian-GSD / Russian-Taiga r2.18 (CC BY-SA 4.0)
67
+ and UniMorph Russian (CC BY-SA 3.0) — used strictly offline for read-only
68
+ quality evaluation; not bundled in distributions.
69
+
70
+ ------------------------------------------------------------------------
71
+ 4. Go Runtime & Standard Library (Bundled in Prebuilt Binaries / Wheels / WASM)
72
+ ------------------------------------------------------------------------
73
+ Components:
74
+ - Go standard library and runtime compiled into `librulemma.so`,
75
+ `librulemma.dylib`, `rulemma.dll`, CLI binary, and `.wasm` modules.
76
+
77
+ License:
78
+ - BSD-3-Clause License (https://go.dev/LICENSE)
79
+
80
+ Full Go License Text:
81
+
82
+ Copyright (c) 2009 The Go Authors. All rights reserved.
83
+
84
+ Redistribution and use in source and binary forms, with or without
85
+ modification, are permitted provided that the following conditions are
86
+ met:
87
+
88
+ * Redistributions of source code must retain the above copyright
89
+ notice, this list of conditions and the following disclaimer.
90
+ * Redistributions in binary form must reproduce the above
91
+ copyright notice, this list of conditions and the following disclaimer
92
+ in the documentation and/or other materials provided with the
93
+ distribution.
94
+ * Neither the name of Google Inc. nor the names of its
95
+ contributors may be used to endorse or promote products derived from
96
+ this software without specific prior written permission.
97
+
98
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
99
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
100
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
101
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
102
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
103
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
104
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
105
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
106
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
107
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
108
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
rulemma/__init__.py ADDED
@@ -0,0 +1,27 @@
1
+ """rulemma: быстрый лемматизатор русского языка и e-commerce запросов на Go для Python."""
2
+ from .client import (
3
+ DEFAULT_STOP_WORDS,
4
+ ECOMMERCE_STOP_WORDS,
5
+ GENERAL_STOP_WORDS,
6
+ RuLemma,
7
+ normalize_homoglyphs,
8
+ normalize_homoglyphs_batch,
9
+ normalize_phrase,
10
+ pluralize_form,
11
+ preposition,
12
+ )
13
+
14
+ __all__ = [
15
+ "RuLemma",
16
+ "DEFAULT_STOP_WORDS",
17
+ "GENERAL_STOP_WORDS",
18
+ "ECOMMERCE_STOP_WORDS",
19
+ "normalize_phrase",
20
+ "normalize_homoglyphs",
21
+ "normalize_homoglyphs_batch",
22
+ "pluralize_form",
23
+ "preposition",
24
+ "__version__",
25
+ ]
26
+ __version__ = "0.5.2"
27
+ __authors__ = ("Коршиков Дмитрий", "Gemini")