sudachi/lib.rs
1/*
2 * Copyright (c) 2021 Works Applications Co., Ltd.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17//! Clone of [Sudachi](https://github.com/WorksApplications/Sudachi),
18//! a Japanese morphological analyzer
19//!
20//! There is no public API for the initial release.
21//! Issue: https://github.com/WorksApplications/sudachi.rs/issues/28
22//!
23//! Also, there are to mostly
24//! [SudachiPy-compatible Python bindings](https://worksapplications.github.io/sudachi.rs/python/).
25
26pub mod analysis;
27pub mod config;
28pub mod dic;
29pub mod error;
30pub mod input_text;
31pub mod plugin;
32pub mod sentence_detector;
33pub mod sentence_splitter;
34pub(crate) mod util;
35
36mod hash;
37pub mod pos;
38#[cfg(test)]
39pub mod test;
40
41pub mod prelude {
42 pub use crate::{
43 analysis::mlist::MorphemeList, analysis::morpheme::Morpheme, analysis::Mode,
44 error::SudachiError, error::SudachiResult,
45 };
46}