Skip to main content

rustling/
lib.rs

1//! # Rustling
2//!
3//! Rustling is a blazingly fast library of tools for computational linguistics.
4
5use pyo3::prelude::*;
6
7pub mod taggers;
8pub mod trie;
9pub mod wordseg;
10
11/// A Python module implemented in Rust.
12#[pymodule]
13#[pyo3(name = "_lib_name")]
14fn rustling(m: &Bound<'_, PyModule>) -> PyResult<()> {
15    taggers::register_module(m)?;
16    wordseg::register_module(m)?;
17    Ok(())
18}