TEAVE 0.1.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.
- teave-0.1.0/CHANGELOG.md +11 -0
- teave-0.1.0/Cargo.lock +229 -0
- teave-0.1.0/Cargo.toml +23 -0
- teave-0.1.0/LICENSE +674 -0
- teave-0.1.0/PKG-INFO +183 -0
- teave-0.1.0/README.md +147 -0
- teave-0.1.0/RELEASING.md +54 -0
- teave-0.1.0/pyproject.toml +44 -0
- teave-0.1.0/python/teave/__init__.py +87 -0
- teave-0.1.0/python/teave/_dates/__init__.py +1 -0
- teave-0.1.0/python/teave/_dates/date_years.py +113 -0
- teave-0.1.0/python/teave/_dates/dates.py +1889 -0
- teave-0.1.0/python/teave/_dates/era_dates.py +56 -0
- teave-0.1.0/python/teave/_dates/historical_dates.py +688 -0
- teave-0.1.0/python/teave/_dates/schemas.py +30 -0
- teave-0.1.0/python/teave/_dates/span_index.py +99 -0
- teave-0.1.0/python/teave/_language.py +47 -0
- teave-0.1.0/python/teave/_models.py +87 -0
- teave-0.1.0/python/teave/_native.pyi +4 -0
- teave-0.1.0/python/teave/_ner.py +254 -0
- teave-0.1.0/python/teave/_pii.py +74 -0
- teave-0.1.0/python/teave/py.typed +0 -0
- teave-0.1.0/src/lib.rs +258 -0
- teave-0.1.0/tests/test_api.py +99 -0
- teave-0.1.0/tests/test_model_download.py +106 -0
- teave-0.1.0/tests/test_onnx.py +73 -0
- teave-0.1.0/tests/test_year_grammar.py +44 -0
teave-0.1.0/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
- Typed, offline-first text indexing API for Estonian, Finnish, Latvian and Russian.
|
|
6
|
+
- Historical and contemporary date recognition from TeXplorer.
|
|
7
|
+
- Rust PII matching and ordered parallel batch scanning; region-aware phone matching.
|
|
8
|
+
- Optional FP32 NER with pinned, verified upstream checkpoint downloads and
|
|
9
|
+
local PyTorch inference. A local FP32 ONNX adapter supports Rapido CRF decoding.
|
|
10
|
+
- Shared multilingual year-marker structure with per-language vocabulary.
|
|
11
|
+
- Platform wheels, source archive, CI and a version-tagged Trusted Publishing workflow.
|
teave-0.1.0/Cargo.lock
ADDED
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "1.1.5"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "crossbeam-deque"
|
|
16
|
+
version = "0.8.8"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
|
|
19
|
+
dependencies = [
|
|
20
|
+
"crossbeam-epoch",
|
|
21
|
+
"crossbeam-utils",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
[[package]]
|
|
25
|
+
name = "crossbeam-epoch"
|
|
26
|
+
version = "0.9.21"
|
|
27
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
28
|
+
checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
|
|
29
|
+
dependencies = [
|
|
30
|
+
"crossbeam-utils",
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
[[package]]
|
|
34
|
+
name = "crossbeam-utils"
|
|
35
|
+
version = "0.8.23"
|
|
36
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
37
|
+
checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
|
|
38
|
+
|
|
39
|
+
[[package]]
|
|
40
|
+
name = "either"
|
|
41
|
+
version = "1.19.0"
|
|
42
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
43
|
+
checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
|
|
44
|
+
|
|
45
|
+
[[package]]
|
|
46
|
+
name = "heck"
|
|
47
|
+
version = "0.5.0"
|
|
48
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
49
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
50
|
+
|
|
51
|
+
[[package]]
|
|
52
|
+
name = "libc"
|
|
53
|
+
version = "0.2.191"
|
|
54
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
55
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
56
|
+
|
|
57
|
+
[[package]]
|
|
58
|
+
name = "memchr"
|
|
59
|
+
version = "2.8.3"
|
|
60
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
61
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
62
|
+
|
|
63
|
+
[[package]]
|
|
64
|
+
name = "once_cell"
|
|
65
|
+
version = "1.21.4"
|
|
66
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
67
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
68
|
+
|
|
69
|
+
[[package]]
|
|
70
|
+
name = "portable-atomic"
|
|
71
|
+
version = "1.15.0"
|
|
72
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
74
|
+
|
|
75
|
+
[[package]]
|
|
76
|
+
name = "proc-macro2"
|
|
77
|
+
version = "1.0.107"
|
|
78
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
79
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
80
|
+
dependencies = [
|
|
81
|
+
"unicode-ident",
|
|
82
|
+
]
|
|
83
|
+
|
|
84
|
+
[[package]]
|
|
85
|
+
name = "pyo3"
|
|
86
|
+
version = "0.30.1"
|
|
87
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
88
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
89
|
+
dependencies = [
|
|
90
|
+
"libc",
|
|
91
|
+
"once_cell",
|
|
92
|
+
"portable-atomic",
|
|
93
|
+
"pyo3-build-config",
|
|
94
|
+
"pyo3-ffi",
|
|
95
|
+
"pyo3-macros",
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
[[package]]
|
|
99
|
+
name = "pyo3-build-config"
|
|
100
|
+
version = "0.30.1"
|
|
101
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
102
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
103
|
+
dependencies = [
|
|
104
|
+
"target-lexicon",
|
|
105
|
+
]
|
|
106
|
+
|
|
107
|
+
[[package]]
|
|
108
|
+
name = "pyo3-ffi"
|
|
109
|
+
version = "0.30.1"
|
|
110
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
111
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
112
|
+
dependencies = [
|
|
113
|
+
"libc",
|
|
114
|
+
"pyo3-build-config",
|
|
115
|
+
]
|
|
116
|
+
|
|
117
|
+
[[package]]
|
|
118
|
+
name = "pyo3-macros"
|
|
119
|
+
version = "0.30.1"
|
|
120
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
121
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
122
|
+
dependencies = [
|
|
123
|
+
"proc-macro2",
|
|
124
|
+
"pyo3-macros-backend",
|
|
125
|
+
"quote",
|
|
126
|
+
"syn",
|
|
127
|
+
]
|
|
128
|
+
|
|
129
|
+
[[package]]
|
|
130
|
+
name = "pyo3-macros-backend"
|
|
131
|
+
version = "0.30.1"
|
|
132
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
133
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
134
|
+
dependencies = [
|
|
135
|
+
"heck",
|
|
136
|
+
"proc-macro2",
|
|
137
|
+
"quote",
|
|
138
|
+
"syn",
|
|
139
|
+
]
|
|
140
|
+
|
|
141
|
+
[[package]]
|
|
142
|
+
name = "quote"
|
|
143
|
+
version = "1.0.47"
|
|
144
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
145
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
146
|
+
dependencies = [
|
|
147
|
+
"proc-macro2",
|
|
148
|
+
]
|
|
149
|
+
|
|
150
|
+
[[package]]
|
|
151
|
+
name = "rayon"
|
|
152
|
+
version = "1.12.0"
|
|
153
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
154
|
+
checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
|
|
155
|
+
dependencies = [
|
|
156
|
+
"either",
|
|
157
|
+
"rayon-core",
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
[[package]]
|
|
161
|
+
name = "rayon-core"
|
|
162
|
+
version = "1.13.0"
|
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
+
checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
|
|
165
|
+
dependencies = [
|
|
166
|
+
"crossbeam-deque",
|
|
167
|
+
"crossbeam-utils",
|
|
168
|
+
]
|
|
169
|
+
|
|
170
|
+
[[package]]
|
|
171
|
+
name = "regex"
|
|
172
|
+
version = "1.13.2"
|
|
173
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
174
|
+
checksum = "9807af0e638c12e753aa1b4e601791bf2a8f71274023c8bbeec12fc149950857"
|
|
175
|
+
dependencies = [
|
|
176
|
+
"aho-corasick",
|
|
177
|
+
"memchr",
|
|
178
|
+
"regex-automata",
|
|
179
|
+
"regex-syntax",
|
|
180
|
+
]
|
|
181
|
+
|
|
182
|
+
[[package]]
|
|
183
|
+
name = "regex-automata"
|
|
184
|
+
version = "0.4.19"
|
|
185
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
186
|
+
checksum = "41d60ef07df457506a0a1a2073112eb4aae5733dbd2813c3da77d1b0fd441158"
|
|
187
|
+
dependencies = [
|
|
188
|
+
"aho-corasick",
|
|
189
|
+
"memchr",
|
|
190
|
+
"regex-syntax",
|
|
191
|
+
]
|
|
192
|
+
|
|
193
|
+
[[package]]
|
|
194
|
+
name = "regex-syntax"
|
|
195
|
+
version = "0.8.12"
|
|
196
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
197
|
+
checksum = "d902046e6a28a1e4c3cab97258a0ce11e994903f01c2d97a9447a0b3df85f4f6"
|
|
198
|
+
|
|
199
|
+
[[package]]
|
|
200
|
+
name = "syn"
|
|
201
|
+
version = "3.0.10"
|
|
202
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
203
|
+
checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
|
|
204
|
+
dependencies = [
|
|
205
|
+
"proc-macro2",
|
|
206
|
+
"quote",
|
|
207
|
+
"unicode-ident",
|
|
208
|
+
]
|
|
209
|
+
|
|
210
|
+
[[package]]
|
|
211
|
+
name = "target-lexicon"
|
|
212
|
+
version = "0.13.6"
|
|
213
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
|
|
215
|
+
|
|
216
|
+
[[package]]
|
|
217
|
+
name = "teave-native"
|
|
218
|
+
version = "0.1.0"
|
|
219
|
+
dependencies = [
|
|
220
|
+
"pyo3",
|
|
221
|
+
"rayon",
|
|
222
|
+
"regex",
|
|
223
|
+
]
|
|
224
|
+
|
|
225
|
+
[[package]]
|
|
226
|
+
name = "unicode-ident"
|
|
227
|
+
version = "1.0.27"
|
|
228
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
229
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
teave-0.1.0/Cargo.toml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "teave-native"
|
|
3
|
+
description = "Native pattern scanning for TEAVE"
|
|
4
|
+
repository = "https://github.com/Rahvusarhiiv/TEAVE"
|
|
5
|
+
version = "0.1.0"
|
|
6
|
+
edition = "2021"
|
|
7
|
+
rust-version = "1.85"
|
|
8
|
+
license = "GPL-3.0-only"
|
|
9
|
+
publish = false
|
|
10
|
+
include = ["/src/**", "/python/**", "/tests/**", "/pyproject.toml", "/LICENSE", "/README.md", "/RELEASING.md", "/CHANGELOG.md"]
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
|
|
13
|
+
[lib]
|
|
14
|
+
name = "_native"
|
|
15
|
+
crate-type = ["cdylib"]
|
|
16
|
+
|
|
17
|
+
[dependencies]
|
|
18
|
+
pyo3 = { version = "0.30", features = ["abi3-py310"] }
|
|
19
|
+
rayon = "1.11"
|
|
20
|
+
regex = "1.12"
|
|
21
|
+
|
|
22
|
+
[profile.release]
|
|
23
|
+
lto = "thin"
|