Add attested wordforms table
#2
by ChuckLind - opened
- CHANGELOG.MD +27 -0
- README.md +168 -2
- attested-wordlist-v1.0.0.parquet +3 -0
CHANGELOG.MD
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Changelog
|
| 2 |
+
|
| 3 |
+
All notable changes to the Dicta Unvocalized Hebrew Wordlist dataset.
|
| 4 |
+
|
| 5 |
+
## [attested-1.0.0] — pending upload
|
| 6 |
+
|
| 7 |
+
### Added
|
| 8 |
+
- **`attested` config** — a second table of *attested wordforms*: every distinct
|
| 9 |
+
`(wordform, prefix, morphology)` actually seen in a Dicta corpus, across five genres
|
| 10 |
+
(Modern, Rabbinic, Talmud, ModernPoetry, MedievalPoetry). 695,870 rows.
|
| 11 |
+
- Columns: `wordform` (the seen unvocalized spelling, prefix removed), `prefix`, the morphology
|
| 12 |
+
ClassLabels (`pos`/`binyan`/`gender`/`number`/`person`/`tense`/`status`/`suffix_*`), and
|
| 13 |
+
`genres` (list of genres the form was attested in).
|
| 14 |
+
- Unlike the `default` table (which enumerates every *theoretically* valid word-object),
|
| 15 |
+
`attested` records only spellings observed in corpora. It is ~99% a subset of the
|
| 16 |
+
`default` table's known spellings (`wordform` matches `default`'s `word`, `haser`, or a
|
| 17 |
+
member of `maleh_forms`); the residual is out-of-wordlist POS such as `INITIALISM` and a few other
|
| 18 |
+
pathologies.
|
| 19 |
+
|
| 20 |
+
## [1.0.0] — initial upload
|
| 21 |
+
|
| 22 |
+
### Added
|
| 23 |
+
- **`default` config** — the Dicta Unvocalized Hebrew Wordlist: every distinct unvocalized
|
| 24 |
+
(nikud-stripped) Hebrew word form Dicta knows, with morphology, lemma, and root.
|
| 25 |
+
4,056,791 rows.
|
| 26 |
+
- All categorical columns as `ClassLabel` (integer codes + names in the Parquet metadata).
|
| 27 |
+
- `lemma_id` (one per unique vocalized `lex`).
|
README.md
CHANGED
|
@@ -15,7 +15,12 @@ configs:
|
|
| 15 |
data_files:
|
| 16 |
- split: train
|
| 17 |
path: wordlist-v1.0.0.parquet
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
dataset_info:
|
|
|
|
| 19 |
features:
|
| 20 |
- name: id
|
| 21 |
dtype: int64
|
|
@@ -155,6 +160,126 @@ dataset_info:
|
|
| 155 |
splits:
|
| 156 |
- name: train
|
| 157 |
num_examples: 4056791
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
---
|
| 159 |
|
| 160 |
# Dicta Unvocalized Hebrew Wordlist
|
|
@@ -163,11 +288,16 @@ Every distinct unvocalized (nikud-stripped) Hebrew word form Dicta knows, with i
|
|
| 163 |
morphology, lemma, and root. There is no compact natural key: rows are distinguished only by the
|
| 164 |
full combination of `word` + `lex` + morphology + `root` + the linguistic flags. Use `id` as the row key.
|
| 165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 166 |
## Loading
|
| 167 |
|
| 168 |
```python
|
| 169 |
from datasets import load_dataset
|
| 170 |
-
ds = load_dataset("dicta-il/wordlist", split="train")
|
| 171 |
# every categorical column loads as a ClassLabel (int codes); .int2str decodes any of them:
|
| 172 |
ds.features["pos"].int2str(ds[0]["pos"]) # -> e.g. "VERB"; same for binyan, gender, tense, ...
|
| 173 |
```
|
|
@@ -201,9 +331,45 @@ names live in the file's feature metadata (recovered automatically by `datasets`
|
|
| 201 |
- `status`: `ABSOLUTECONSTRUCT` = form valid as both absolute and construct.
|
| 202 |
- `suffix_function`: `POSSESIVEPRONOUN` (possessive) vs `ACCUSATIVENOMINATIVE` (object/subject clitic). Note: tagging of function words that carry suffixes is inconsistent.
|
| 203 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
## Maintainers: label stability (read before updating)
|
| 205 |
|
| 206 |
Categorical columns are `ClassLabel`, and each integer code is the **position** of its name in the
|
| 207 |
label list. When regenerating or extending this dataset — **by any means** — you must **only append
|
| 208 |
new label values at the end**. Never reorder or insert: doing so silently remaps existing codes and
|
| 209 |
-
breaks every consumer that compares against integers across versions.
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
data_files:
|
| 16 |
- split: train
|
| 17 |
path: wordlist-v1.0.0.parquet
|
| 18 |
+
- config_name: attested
|
| 19 |
+
data_files:
|
| 20 |
+
- split: train
|
| 21 |
+
path: attested-wordlist-v1.0.0.parquet
|
| 22 |
dataset_info:
|
| 23 |
+
- config_name: default
|
| 24 |
features:
|
| 25 |
- name: id
|
| 26 |
dtype: int64
|
|
|
|
| 160 |
splits:
|
| 161 |
- name: train
|
| 162 |
num_examples: 4056791
|
| 163 |
+
- config_name: attested
|
| 164 |
+
features:
|
| 165 |
+
- name: wordform
|
| 166 |
+
dtype: string
|
| 167 |
+
- name: prefix
|
| 168 |
+
dtype: string
|
| 169 |
+
- name: pos
|
| 170 |
+
dtype:
|
| 171 |
+
class_label:
|
| 172 |
+
names:
|
| 173 |
+
'0': ADJECTIVE
|
| 174 |
+
'1': ADVERB
|
| 175 |
+
'2': AT_PREP
|
| 176 |
+
'3': CONJUNCTION
|
| 177 |
+
'4': COPULA
|
| 178 |
+
'5': EXISTENTIAL
|
| 179 |
+
'6': INTERJECTION
|
| 180 |
+
'7': INTERROGATIVE
|
| 181 |
+
'8': NEGATION
|
| 182 |
+
'9': NOUN
|
| 183 |
+
'10': NUMERAL
|
| 184 |
+
'11': PARTICIPLE
|
| 185 |
+
'12': PREFIX
|
| 186 |
+
'13': PREPOSITION
|
| 187 |
+
'14': PRONOUN
|
| 188 |
+
'15': PROPERNAME
|
| 189 |
+
'16': QUANTIFIER
|
| 190 |
+
'17': SHEL_PREP
|
| 191 |
+
'18': TITULAR
|
| 192 |
+
'19': VERB
|
| 193 |
+
'20': INITIALISM
|
| 194 |
+
- name: binyan
|
| 195 |
+
dtype:
|
| 196 |
+
class_label:
|
| 197 |
+
names:
|
| 198 |
+
'0': HIFIL
|
| 199 |
+
'1': HITPAEL
|
| 200 |
+
'2': HUFAL
|
| 201 |
+
'3': NIFAL
|
| 202 |
+
'4': PAAL
|
| 203 |
+
'5': PIEL
|
| 204 |
+
'6': PUAL
|
| 205 |
+
- name: gender
|
| 206 |
+
dtype:
|
| 207 |
+
class_label:
|
| 208 |
+
names:
|
| 209 |
+
'0': FEMININE
|
| 210 |
+
'1': MASCULINE
|
| 211 |
+
'2': MASCULINEFEMININE
|
| 212 |
+
- name: number
|
| 213 |
+
dtype:
|
| 214 |
+
class_label:
|
| 215 |
+
names:
|
| 216 |
+
'0': DUAL
|
| 217 |
+
'1': PLURAL
|
| 218 |
+
'2': SINGULAR
|
| 219 |
+
'3': SINGULARPLURAL
|
| 220 |
+
- name: person
|
| 221 |
+
dtype:
|
| 222 |
+
class_label:
|
| 223 |
+
names:
|
| 224 |
+
'0': '1'
|
| 225 |
+
'1': '2'
|
| 226 |
+
'2': '3'
|
| 227 |
+
'3': ANY
|
| 228 |
+
- name: tense
|
| 229 |
+
dtype:
|
| 230 |
+
class_label:
|
| 231 |
+
names:
|
| 232 |
+
'0': BAREINFINITIVE
|
| 233 |
+
'1': FUTURE
|
| 234 |
+
'2': IMPERATIVE
|
| 235 |
+
'3': PAST
|
| 236 |
+
'4': PRESENT
|
| 237 |
+
'5': TOINFINITIVE
|
| 238 |
+
- name: status
|
| 239 |
+
dtype:
|
| 240 |
+
class_label:
|
| 241 |
+
names:
|
| 242 |
+
'0': ABSOLUTE
|
| 243 |
+
'1': ABSOLUTECONSTRUCT
|
| 244 |
+
'2': CONSTRUCT
|
| 245 |
+
- name: suffix_function
|
| 246 |
+
dtype:
|
| 247 |
+
class_label:
|
| 248 |
+
names:
|
| 249 |
+
'0': ACCUSATIVENOMINATIVE
|
| 250 |
+
'1': POSSESIVEPRONOUN
|
| 251 |
+
- name: suffix_gender
|
| 252 |
+
dtype:
|
| 253 |
+
class_label:
|
| 254 |
+
names:
|
| 255 |
+
'0': FEMININE
|
| 256 |
+
'1': MASCULINE
|
| 257 |
+
'2': MASCULINEFEMININE
|
| 258 |
+
- name: suffix_number
|
| 259 |
+
dtype:
|
| 260 |
+
class_label:
|
| 261 |
+
names:
|
| 262 |
+
'0': PLURAL
|
| 263 |
+
'1': SINGULAR
|
| 264 |
+
- name: suffix_person
|
| 265 |
+
dtype:
|
| 266 |
+
class_label:
|
| 267 |
+
names:
|
| 268 |
+
'0': '1'
|
| 269 |
+
'1': '2'
|
| 270 |
+
'2': '3'
|
| 271 |
+
- name: genres
|
| 272 |
+
sequence:
|
| 273 |
+
class_label:
|
| 274 |
+
names:
|
| 275 |
+
'0': Modern
|
| 276 |
+
'1': Rabbinic
|
| 277 |
+
'2': Talmud
|
| 278 |
+
'3': ModernPoetry
|
| 279 |
+
'4': MedievalPoetry
|
| 280 |
+
splits:
|
| 281 |
+
- name: train
|
| 282 |
+
num_examples: 695870
|
| 283 |
---
|
| 284 |
|
| 285 |
# Dicta Unvocalized Hebrew Wordlist
|
|
|
|
| 288 |
morphology, lemma, and root. There is no compact natural key: rows are distinguished only by the
|
| 289 |
full combination of `word` + `lex` + morphology + `root` + the linguistic flags. Use `id` as the row key.
|
| 290 |
|
| 291 |
+
This repo has two configs:
|
| 292 |
+
- **`default`** — the full wordlist below (every theoretically valid word-object).
|
| 293 |
+
- **`attested`** — wordforms actually observed in Dicta corpora, with the prefix and the genres
|
| 294 |
+
they were seen in. See [Attested wordforms](#attested-wordforms-attested-config).
|
| 295 |
+
|
| 296 |
## Loading
|
| 297 |
|
| 298 |
```python
|
| 299 |
from datasets import load_dataset
|
| 300 |
+
ds = load_dataset("dicta-il/wordlist", "default", split="train") # or "attested"
|
| 301 |
# every categorical column loads as a ClassLabel (int codes); .int2str decodes any of them:
|
| 302 |
ds.features["pos"].int2str(ds[0]["pos"]) # -> e.g. "VERB"; same for binyan, gender, tense, ...
|
| 303 |
```
|
|
|
|
| 331 |
- `status`: `ABSOLUTECONSTRUCT` = form valid as both absolute and construct.
|
| 332 |
- `suffix_function`: `POSSESIVEPRONOUN` (possessive) vs `ACCUSATIVENOMINATIVE` (object/subject clitic). Note: tagging of function words that carry suffixes is inconsistent.
|
| 333 |
|
| 334 |
+
## Attested wordforms (`attested` config)
|
| 335 |
+
|
| 336 |
+
Where the `default` config lists every *theoretically valid* word-object Dicta knows, the `attested`
|
| 337 |
+
config lists wordform+morphologies believed by Dicta to actually exist in the wild with some frequency. Each row is a distinct
|
| 338 |
+
`(wordform, prefix, morphology)` seen or tagged in at least one corpus, across five genres.
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
```python
|
| 342 |
+
from datasets import load_dataset
|
| 343 |
+
ds = load_dataset("dicta-il/wordlist", "attested", split="train")
|
| 344 |
+
ds.features["pos"].int2str(ds[0]["pos"])
|
| 345 |
+
ds.features["genres"].feature.int2str(ds[0]["genres"]) # genres is a list of ClassLabels
|
| 346 |
+
```
|
| 347 |
+
|
| 348 |
+
| column | type | notes |
|
| 349 |
+
|---|---|---|
|
| 350 |
+
| `wordform` | string | the attested unvocalized spelling, with the prefix removed |
|
| 351 |
+
| `prefix` | string | the attached prefix letters (empty if none) |
|
| 352 |
+
| `pos` | ClassLabel | part of speech — includes `INITIALISM`, which the `default` table does not |
|
| 353 |
+
| `binyan`, `gender`, `number`, `person`, `tense`, `status` | ClassLabel | inflectional morphology |
|
| 354 |
+
| `suffix_function`, `suffix_gender`, `suffix_number`, `suffix_person` | ClassLabel | pronominal suffix, null if none |
|
| 355 |
+
| `genres` | list[ClassLabel] | genres the form was attested in: Modern, Rabbinic, Talmud, ModernPoetry, MedievalPoetry |
|
| 356 |
+
|
| 357 |
+
Notes:
|
| 358 |
+
- No lemma/haser/maleh columns: those are word-object facts, not observations. To recover them, join
|
| 359 |
+
back to the `default` config — but note a `wordform` is any *spelling* of a word-object, so it may
|
| 360 |
+
appear in the `default` config's `word`, `haser`, **or** `maleh_forms`. Match against all three
|
| 361 |
+
(e.g. `wordform IN (word, haser)` or `wordform` a member of `maleh_forms`), plus morphology.
|
| 362 |
+
- `wordform` is ~99% a subset of the `default` table's known spellings (`word`/`haser`/`maleh_forms`);
|
| 363 |
+
the residual is mostly out-of-wordlist POS (e.g. `INITIALISM`), some classes that are too productive
|
| 364 |
+
to capture in a list (Internet-style spellings, names of years, etc.), and a few of what appear to be
|
| 365 |
+
tagging errors.
|
| 366 |
+
|
| 367 |
## Maintainers: label stability (read before updating)
|
| 368 |
|
| 369 |
Categorical columns are `ClassLabel`, and each integer code is the **position** of its name in the
|
| 370 |
label list. When regenerating or extending this dataset — **by any means** — you must **only append
|
| 371 |
new label values at the end**. Never reorder or insert: doing so silently remaps existing codes and
|
| 372 |
+
breaks every consumer that compares against integers across versions. (This is why the `attested`
|
| 373 |
+
config's `pos` has `INITIALISM` appended at index 20, after the `default` config's 20 values.)
|
| 374 |
+
|
| 375 |
+
See `CHANGELOG.md` for version history.
|
attested-wordlist-v1.0.0.parquet
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0491aa03fdf111323e90c58fea26df2deae8521ac8c0357dfdd2d21c11a854c4
|
| 3 |
+
size 14153979
|