failed09 commited on
Commit
4eb5879
·
verified ·
1 Parent(s): 137e0ce

Release Bashkir Frequency Index v8.1 (105M tokens, 858k wordforms)

Browse files
Files changed (2) hide show
  1. .gitattributes +2 -60
  2. README.md +17 -19
.gitattributes CHANGED
@@ -1,60 +1,2 @@
1
- *.7z filter=lfs diff=lfs merge=lfs -text
2
- *.arrow filter=lfs diff=lfs merge=lfs -text
3
- *.avro filter=lfs diff=lfs merge=lfs -text
4
- *.bin filter=lfs diff=lfs merge=lfs -text
5
- *.bz2 filter=lfs diff=lfs merge=lfs -text
6
- *.ckpt filter=lfs diff=lfs merge=lfs -text
7
- *.ftz filter=lfs diff=lfs merge=lfs -text
8
- *.gz filter=lfs diff=lfs merge=lfs -text
9
- *.h5 filter=lfs diff=lfs merge=lfs -text
10
- *.joblib filter=lfs diff=lfs merge=lfs -text
11
- *.lfs.* filter=lfs diff=lfs merge=lfs -text
12
- *.lz4 filter=lfs diff=lfs merge=lfs -text
13
- *.mds filter=lfs diff=lfs merge=lfs -text
14
- *.mlmodel filter=lfs diff=lfs merge=lfs -text
15
- *.model filter=lfs diff=lfs merge=lfs -text
16
- *.msgpack filter=lfs diff=lfs merge=lfs -text
17
- *.npy filter=lfs diff=lfs merge=lfs -text
18
- *.npz filter=lfs diff=lfs merge=lfs -text
19
- *.onnx filter=lfs diff=lfs merge=lfs -text
20
- *.ot filter=lfs diff=lfs merge=lfs -text
21
- *.parquet filter=lfs diff=lfs merge=lfs -text
22
- *.pb filter=lfs diff=lfs merge=lfs -text
23
- *.pickle filter=lfs diff=lfs merge=lfs -text
24
- *.pkl filter=lfs diff=lfs merge=lfs -text
25
- *.pt filter=lfs diff=lfs merge=lfs -text
26
- *.pth filter=lfs diff=lfs merge=lfs -text
27
- *.rar filter=lfs diff=lfs merge=lfs -text
28
- *.safetensors filter=lfs diff=lfs merge=lfs -text
29
- saved_model/**/* filter=lfs diff=lfs merge=lfs -text
30
- *.tar.* filter=lfs diff=lfs merge=lfs -text
31
- *.tar filter=lfs diff=lfs merge=lfs -text
32
- *.tflite filter=lfs diff=lfs merge=lfs -text
33
- *.tgz filter=lfs diff=lfs merge=lfs -text
34
- *.wasm filter=lfs diff=lfs merge=lfs -text
35
- *.xz filter=lfs diff=lfs merge=lfs -text
36
- *.zip filter=lfs diff=lfs merge=lfs -text
37
- *.zst filter=lfs diff=lfs merge=lfs -text
38
- *tfevents* filter=lfs diff=lfs merge=lfs -text
39
- # Audio files - uncompressed
40
- *.pcm filter=lfs diff=lfs merge=lfs -text
41
- *.sam filter=lfs diff=lfs merge=lfs -text
42
- *.raw filter=lfs diff=lfs merge=lfs -text
43
- # Audio files - compressed
44
- *.aac filter=lfs diff=lfs merge=lfs -text
45
- *.flac filter=lfs diff=lfs merge=lfs -text
46
- *.mp3 filter=lfs diff=lfs merge=lfs -text
47
- *.ogg filter=lfs diff=lfs merge=lfs -text
48
- *.wav filter=lfs diff=lfs merge=lfs -text
49
- # Image files - uncompressed
50
- *.bmp filter=lfs diff=lfs merge=lfs -text
51
- *.gif filter=lfs diff=lfs merge=lfs -text
52
- *.png filter=lfs diff=lfs merge=lfs -text
53
- *.tiff filter=lfs diff=lfs merge=lfs -text
54
- # Image files - compressed
55
- *.jpg filter=lfs diff=lfs merge=lfs -text
56
- *.jpeg filter=lfs diff=lfs merge=lfs -text
57
- *.webp filter=lfs diff=lfs merge=lfs -text
58
- # Video files - compressed
59
- *.mp4 filter=lfs diff=lfs merge=lfs -text
60
- *.webm filter=lfs diff=lfs merge=lfs -text
 
1
+ *.parquet filter=lfs diff=lfs merge=lfs -text
2
+ *.json -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -2,7 +2,7 @@
2
  license: cc-by-4.0
3
  language:
4
  - ba
5
- pretty_name: Bashkir Frequency Index (105M tokens, 81 Sources Super Corpus)
6
  task_categories:
7
  - text-classification
8
  configs:
@@ -26,18 +26,18 @@ tags:
26
 
27
  # Bashkir Frequency Index v8.1
28
 
29
- Word-frequency index for the Bashkir language, built from **105.01 million tokens** of clean monolingual text across **81 diverse authentic sources** (republican newspapers, literary magazines, 28 district regional press editions, digital library Kitaptar, classical literature, folklore archives, speech transcripts, and the complete Bashkir Wikipedia universe). Russian language admixture and OCR scanning noise were removed via sentence-level filtering and Diamond Clean v2 pipeline.
30
 
31
  ## Configurations
32
 
33
  | Config | Rows | Cutoff | Use Case |
34
  |---|---:|---|---|
35
- | **`public`** (recommended) | **634,193** | count ≥ 3 | Production NLP applications, spellcheckers, Huzhle, Duolingo-style SRS, T9 |
36
- | **`full`** | **858,284** | count ≥ 2 | Comprehensive morphology studies, dialect research, linguistic analysis |
37
 
38
  Additionally provided in the repository:
39
- - [`top_coverage_50.json`](top_coverage_50.json): the minimal set of **1,730 word forms covering 50% of all tokens** across the language.
40
- - [`top_500.json`](top_500.json): clean top-500 core vocabulary list for quick mobile lookups.
41
 
42
  ## Schema
43
 
@@ -45,13 +45,13 @@ Additionally provided in the repository:
45
  |---|---|---|
46
  | `rank` | int64 | Position by descending frequency |
47
  | `word` | string | Word form, lowercase Cyrillic |
48
- | `count` | int64 | Absolute frequency count (total occurrences) |
49
  | `doc_freq` | int64 | Number of distinct sentences containing this word form |
50
  | `freq_per_million` | double | Normalized instances per million tokens (FPM / IPM) |
51
 
52
  ## Sample (Top 10 Words)
53
 
54
- | Rank | Word | Translation / Function | Count | FPM | Doc Frequency |
55
  |---:|---|---|---:|---:|---:|
56
  | 1 | **һәм** | conjunction "and" | 1,419,398 | 13,516.0 | 1,024,812 |
57
  | 2 | **менән** | postposition "with" | 974,143 | 9,276.1 | 759,204 |
@@ -68,18 +68,18 @@ Additionally provided in the repository:
68
 
69
  | Tokens Covered | Forms Needed | Note |
70
  |---:|---:|---|
71
- | **25%** | **197** | Ultra-core grammatical connectives and pronouns |
72
  | **50%** | **1,730** | Essential high-frequency lexicon |
73
- | **80%** | **18,315** | Conversational and daily news proficiency |
74
- | **90%** | **55,287** | Advanced literary & administrative reading |
75
- | **95%** | **129,354** | Comprehensive vocabulary mastery |
76
 
77
- ## Method and Cleanups
78
 
79
- - **Tokenization:** Regex lowercase tokenization over Cyrillic alphabet including all 9 Bashkir-specific letters (`Ә Ғ Ҙ Ҡ Ң Ө Ҫ Ү Һ`).
80
- - **Base Corpus:** 6,876,733 clean deduplicated sentences (105.01M tokens) from 81 leaf publications and archives.
81
- - **Russian Function Words Filter:** Context-verified removal of Russian function words (quotes, names, headers) that do not have homographs in Bashkir.
82
- - **Length and Noise Filters:** Glued words (>24 characters) and isolated non-Bashkir single letters dropped (kept single `ә`).
83
 
84
  ## Loading
85
 
@@ -89,8 +89,6 @@ from datasets import load_dataset
89
  # Load recommended public configuration
90
  dataset = load_dataset("failed09/bashkir-frequency-index", "public")
91
  df = dataset["train"].to_pandas()
92
-
93
- # Inspect top-10 words
94
  print(df.head(10))
95
  ```
96
 
 
2
  license: cc-by-4.0
3
  language:
4
  - ba
5
+ pretty_name: Bashkir Frequency Index (105M tokens)
6
  task_categories:
7
  - text-classification
8
  configs:
 
26
 
27
  # Bashkir Frequency Index v8.1
28
 
29
+ Word-frequency index for the Bashkir language, computed over **105.01 million tokens** of clean monolingual text across diverse public domains (periodicals, news media, literary publications, encyclopedic texts, books, and general web archives). Non-Bashkir language admixture and scanning artifacts were filtered using automated language-filtering pipelines.
30
 
31
  ## Configurations
32
 
33
  | Config | Rows | Cutoff | Use Case |
34
  |---|---:|---|---|
35
+ | **`public`** (recommended) | **634,193** | count ≥ 3 | NLP applications, spellchecking, text processing, linguistic research |
36
+ | **`full`** | **858,284** | count ≥ 2 | Comprehensive morphology studies, lexical research |
37
 
38
  Additionally provided in the repository:
39
+ - [`top_coverage_50.json`](top_coverage_50.json): the minimal set of **1,730 word forms covering 50% of all tokens** in the corpus.
40
+ - [`top_500.json`](top_500.json): top-500 core frequency vocabulary list.
41
 
42
  ## Schema
43
 
 
45
  |---|---|---|
46
  | `rank` | int64 | Position by descending frequency |
47
  | `word` | string | Word form, lowercase Cyrillic |
48
+ | `count` | int64 | Absolute frequency count (occurrences) |
49
  | `doc_freq` | int64 | Number of distinct sentences containing this word form |
50
  | `freq_per_million` | double | Normalized instances per million tokens (FPM / IPM) |
51
 
52
  ## Sample (Top 10 Words)
53
 
54
+ | Rank | Word | Function / Translation | Count | FPM | Doc Frequency |
55
  |---:|---|---|---:|---:|---:|
56
  | 1 | **һәм** | conjunction "and" | 1,419,398 | 13,516.0 | 1,024,812 |
57
  | 2 | **менән** | postposition "with" | 974,143 | 9,276.1 | 759,204 |
 
68
 
69
  | Tokens Covered | Forms Needed | Note |
70
  |---:|---:|---|
71
+ | **25%** | **195** | Core grammatical connectives and pronouns |
72
  | **50%** | **1,730** | Essential high-frequency lexicon |
73
+ | **80%** | **22,416** | General conversational and media vocabulary |
74
+ | **90%** | **78,531** | Advanced literary & specialized vocabulary |
75
+ | **95%** | **195,042** | Comprehensive lexicon coverage |
76
 
77
+ ## Method
78
 
79
+ - **Tokenization:** Regex lowercase tokenization over Cyrillic script including all 9 Bashkir-specific letters (`Ә Ғ Ҙ Ҡ Ң Ө Ҫ Ү Һ`).
80
+ - **Corpus Base:** 6.87M sentences (105.01M tokens).
81
+ - **Filtering:** Automated function-word language filtering to remove foreign language leaks.
82
+ - **Form Constraints:** Isolated single-character forms removed (except `ә`); concatenated strings (>24 chars) removed.
83
 
84
  ## Loading
85
 
 
89
  # Load recommended public configuration
90
  dataset = load_dataset("failed09/bashkir-frequency-index", "public")
91
  df = dataset["train"].to_pandas()
 
 
92
  print(df.head(10))
93
  ```
94