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 space_penalty;
11pub mod util;
12pub mod viterbi;
13
14pub type LinderaResult<T> = Result<T, crate::error::LinderaError>;
15
16const VERSION: &str = env!("CARGO_PKG_VERSION");
17
18pub fn get_version() -> &'static str {
19    VERSION
20}