Expand description
Dictionary management for morphological analysis.
This module provides functionality for building, loading, and managing dictionaries used in morphological analysis.
§Dictionary Types
- Dictionary: Main dictionary for morphological analysis
- UserDictionary: Custom user-defined dictionary for additional words
§Examples
import lindera
# Load a pre-built dictionary
dictionary = lindera.load_dictionary("ipadic")
# Build a custom dictionary
metadata = lindera.Metadata()
lindera.build_dictionary("/path/to/input", "/path/to/output", metadata)
# Build a user dictionary
lindera.build_user_dictionary("ipadic", "user.csv", "/path/to/output")Structs§
- PyDictionary
- A morphological analysis dictionary.
- PyUser
Dictionary - A user-defined dictionary for custom words.
Functions§
- build_
dictionary - Builds a dictionary from source files.
- build_
user_ dictionary - Builds a user dictionary from a CSV file.
- load_
dictionary - Loads a dictionary from the specified URI.
- load_
user_ dictionary - Loads a user dictionary from the specified URI.