Skip to main content
All dictionary tables (syllables, words, bigrams, trigrams, and processed-file tracking) are defined in one place and applied through the SchemaManager. This keeps schema evolution consistent across pipeline stages and manual database operations.

Overview

SchemaManager Class

Manages database schema with predefined tables and indexes:

Table Schemas

syllables Table

Stores validated Myanmar syllables:

words Table

Stores dictionary words with POS information:

bigrams Table

Stores word bigram probabilities using word IDs:

trigrams Table

Stores word trigram probabilities using word IDs:

pos_* Tables

POS tag probability tables for statistical tagging:

processed_files Table

Tracks processed files for incremental builds:

Methods

create_schema

Creates all tables:

create_indexes

Creates performance indexes:

ensure_inferred_pos_columns

Adds columns for inferred POS data:

Usage in Pipeline

Creating a New Database

Using with DatabasePackager

The recommended approach is to use DatabasePackager which handles schema management automatically:

See Also