Module schema

Module schema 

Source
Expand description

Dictionary schema definitions.

This module provides schema structures that define the format and fields of dictionary entries.

§Examples

# Create a custom schema
schema = lindera.Schema([
    "surface",
    "left_context_id",
    "right_context_id",
    "cost",
    "part_of_speech"
])

# Use default schema
schema = lindera.Schema.create_default()

# Access field information
index = schema.get_field_index("surface")
field = schema.get_field_by_name("part_of_speech")

Structs§

PyFieldDefinition
Field definition in dictionary schema.
PySchema
Dictionary schema definition.

Enums§

PyFieldType
Field type in dictionary schema.