lindera_dictionary/dictionary_loader.rs
1pub mod character_definition;
2pub mod connection_cost_matrix;
3pub mod prefix_dictionary;
4pub mod unknown_dictionary;
5
6use std::path::Path;
7
8use crate::dictionary::{Dictionary, UserDictionary};
9use crate::LinderaResult;
10
11pub trait DictionaryLoader {
12 fn load_dictionary(&self, input_dir: &Path) -> LinderaResult<Dictionary>;
13 fn load_user_dictionary(&self, input_file: &Path) -> LinderaResult<UserDictionary>;
14}