Struct lindera_core::token::Token
source · pub struct Token<'a> {
pub text: &'a str,
pub byte_start: usize,
pub byte_end: usize,
pub position: usize,
pub position_length: usize,
pub word_id: WordId,
pub dictionary: &'a Dictionary,
pub user_dictionary: Option<&'a UserDictionary>,
/* private fields */
}Fields§
§text: &'a strText content of the token.
byte_start: usizeStarting position of the token in bytes.
byte_end: usizeEnding position of the token in bytes.
position: usizePosition, expressed in number of tokens.
position_length: usizeThe length expressed in term of number of original tokens.
word_id: WordIdThe ID of the word and a flag to indicate whether the word is registered in the dictionary.
dictionary: &'a DictionaryReference of dictionary.
user_dictionary: Option<&'a UserDictionary>Reference of user dictionary.