Skip to main content

lindera_dictionary/
lib.rs

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