ik-rs 0.3.1

chinese segment, ik-analyzer for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::core::char_util::CharType;
use crate::core::lexeme::Lexeme;
use crate::core::ordered_linked_list::OrderedLinkedList;

pub trait Segmenter {
    fn analyze(
        &mut self,
        input: &str,
        cursor: usize,
        curr_char_type: CharType,
        origin_lexemes: &mut OrderedLinkedList<Lexeme>,
    );
    fn name(&self) -> &str;
}