alex73 commited on
Commit
ff201f7
·
verified ·
1 Parent(s): 5381995

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +64 -3
README.md CHANGED
@@ -1,3 +1,64 @@
1
- ---
2
- license: cc-by-sa-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - be
4
+ license: cc-by-sa-4.0
5
+ task_categories:
6
+ - token-classification
7
+ - text-generation
8
+ - fill-mask
9
+ tags:
10
+ - belarusian
11
+ - morphology
12
+ - grammar
13
+ - dictionary
14
+ - lemmatization
15
+ - pos-tagging
16
+ pretty_name: GrammarDB (Belarusian Grammatical Database)
17
+ size_categories:
18
+ - 1M<n<10M
19
+ ---
20
+
21
+ # GrammarDB: Comprehensive Belarusian Grammatical Database
22
+
23
+ This dataset contains a massive grammatical database of the Belarusian language, featuring approximately **4.5 million entries**. It provides exhaustive information on wordforms, their paradigms, morphological features, and accents.
24
+
25
+ ## Description
26
+
27
+ GrammarDB is the primary open-source resource for the morphological analysis of the Belarusian language. It serves as the backbone for systems like LanguageTool, spellcheckers for LibreOffice and Firefox, and various NLP tools. The dataset allows users to map any wordform to its lemma (base form) and a comprehensive set of grammatical categories.
28
+
29
+ ## Dataset Structure
30
+
31
+ Each record in the dataset represents a specific wordform and contains the following fields:
32
+
33
+ | Field | Type | Description |
34
+ | :--- | :--- | :--- |
35
+ | `pdgId` | int | Paradigm ID (groups wordforms belonging to the same inflectional type). |
36
+ | `variantId` | char | Paradigm variant identifier. |
37
+ | `variantLemma` | string | The lemma (base/canonical form) for this variant. |
38
+ | `variantType` | string? | Variant type (e.g., stylistic or regional variations). |
39
+ | `paradigmOptions`| string? | Additional paradigm parameters. |
40
+ | `regulationType` | string? | Normative status (references to specific linguistic rules or dictionaries). |
41
+ | `meaning` | string? | Brief semantic clarification (used to distinguish homonyms). |
42
+ | `theme` | string? | Thematic category of the word. |
43
+ | `tag` | string | Grammatical tags (Part of Speech, gender, case, number, tense, etc.). |
44
+ | `slounik` | array? | List of source dictionaries where the word is recorded. |
45
+ | `pravapis` | array? | References to specific orthography (spelling) rules. |
46
+ | `formType` | string? | Type of the specific form within the paradigm. |
47
+ | `formOptions` | string? | Form-specific parameters (e.g., stress/accent marks). |
48
+ | `form` | string | The actual wordform as it appears in text. |
49
+
50
+ For a detailed explanation of the field values and the tagging system, please refer to the official documentation: [bnkorpus.info/articles/grammardb.html](https://bnkorpus.info/articles/grammardb.html).
51
+
52
+ ## Usage
53
+
54
+ You can load this dataset using the `datasets` library:
55
+
56
+ ```python
57
+ from datasets import load_dataset
58
+
59
+ dataset = load_dataset("alex73/GrammarDB")
60
+
61
+ # Example: Filter all forms for a specific lemma
62
+ word_forms = dataset['train'].filter(lambda x: x['variantLemma'] == 'беларускі')
63
+ for row in word_forms:
64
+ print(f"{row['form']} -> {row['tag']}")