lindera_py/
token.rs

1use pyo3::prelude::*;
2
3#[pyclass(name = "Token")]
4pub struct PyToken {
5    #[pyo3(get)]
6    pub text: String,
7    #[pyo3(get)]
8    pub byte_start: usize,
9    #[pyo3(get)]
10    pub byte_end: usize,
11    #[pyo3(get)]
12    pub position: usize,
13    #[pyo3(get)]
14    pub position_length: usize,
15    #[pyo3(get)]
16    pub details: Vec<String>,
17}