alex73/GrammarDB
GrammarDB: Comprehensive Belarusian Grammatical Database 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. Description GrammarDB is the primary open-source resource for the morphological analysis of the Belarusian language. It serves as the backbone for systems like LanguageTool… See the full description on the dataset page: https://huggingface.co/datasets/alex73/GrammarDB.
GrammarDB: Comprehensive Belarusian Grammatical Database
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.
Description
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.
Dataset Structure
Each record in the dataset represents a specific wordform and contains the following fields:
For a detailed explanation of the field values and the tagging system, please refer to the official documentation: bnkorpus.info/articles/grammardb.html.
Usage
You can load this dataset using the datasets library:
from datasets import load_dataset
dataset = load_dataset("alex73/GrammarDB")
# Example: Filter all forms for a specific lemma
word_forms = dataset['train'].filter(lambda x: x['variantLemma'] == 'беларускі')
for row in word_forms:
print(f"{row['form']} -> {row['tag']}")