use std::path::Path;
use crate::LinderaResult;
use crate::dictionary::unknown_dictionary::UnknownDictionary;
use crate::util::read_aligned_file;
pub struct UnknownDictionaryLoader {}
impl UnknownDictionaryLoader {
pub fn load(input_dir: &Path) -> LinderaResult<UnknownDictionary> {
let aligned_data = read_aligned_file(input_dir.join("unk.bin").as_path())?;
UnknownDictionary::load(&aligned_data)
}
}