lindera_dictionary/lib.rs
1#[cfg(feature = "build_rs")]
2pub mod assets;
3pub mod builder;
4pub mod dictionary;
5pub mod error;
6pub mod loader;
7pub mod mode;
8pub mod nbest;
9pub mod util;
10pub mod viterbi;
11
12#[cfg(feature = "train")]
13pub mod trainer;
14
15pub type LinderaResult<T> = Result<T, crate::error::LinderaError>;
16
17const VERERSION: &str = env!("CARGO_PKG_VERSION");
18
19pub fn get_version() -> &'static str {
20 VERERSION
21}