Skip to main content

Crate mecab_ko_dict

Crate mecab_ko_dict 

Source
Expand description

§mecab-ko-dict

한국어 형태소 사전 관리 라이브러리

§주요 기능

  • 바이너리 사전 포맷 (v3.0)
  • FST 기반 형태소 검색
  • 연접 비용 매트릭스
  • 사전 빌더/컴파일러

§예제

use mecab_ko_dict::dictionary::SystemDictionary;

let dict = SystemDictionary::load("path/to/dict").unwrap();
let entries = dict.lookup("안녕");

Re-exports§

pub use dictionary::DictEntry;
pub use dictionary::DictionaryLoader;
pub use dictionary::SystemDictionary;
pub use error::DictError;
pub use error::Result;
pub use file_watcher::FileEvent;
pub use file_watcher::FileWatcher;
pub use file_watcher::WatchConfig;
pub use hot_reload::DeltaUpdate;
pub use hot_reload::DeltaUpdateBuilder;
pub use hot_reload::EntryChange;
pub use hot_reload::HotReloadDictionary;
pub use hot_reload::Version;
pub use hot_reload::VersionInfo;
pub use lazy_entries::LazyEntries;
pub use loader::LazyDictionary;
pub use loader::LoaderConfig;
pub use loader::MmapDictionary;
pub use matrix::ConnectionMatrix;
pub use matrix::DenseMatrix;
pub use matrix::Matrix;
pub use matrix::MatrixLoader;
pub use matrix::MmapMatrix;
pub use matrix::SparseMatrix;
pub use trie::DictionarySearcher;
pub use trie::EntryIndex;
pub use trie::PrefixMatch;
pub use trie::Trie;
pub use trie::TrieBuilder;
pub use user_dict::UserDictionary;
pub use user_dict::UserDictionaryBuilder;
pub use user_dict::UserEntry;

Modules§

dictionary
Dictionary Integration Module
error
에러 모듈
file_watcher
파일 변경 감지 모듈
format
사전 포맷 모듈 (스텁)
hot_reload
실시간 사전 업데이트 (Hot Reload) 모듈
lazy_entries
Lazy Entry Loading
loader
사전 로딩 기능
matrix
연접 비용 행렬 (Connection Cost Matrix)
trie
Double-Array Trie 모듈
user_dict
사용자 정의 사전 모듈

Structs§

Entry
사전 엔트리

Traits§

Dictionary
사전 인터페이스