pub struct Token {
pub surface: String,
pub pos: String,
pub start_pos: usize,
pub end_pos: usize,
pub start_byte: usize,
pub end_byte: usize,
pub reading: Option<String>,
pub lemma: Option<String>,
pub cost: i32,
pub features: String,
pub normalized: Option<String>,
}Expand description
토큰
형태소 분석 결과의 개별 토큰을 표현합니다.
Fields§
§surface: String표면형 (원본 텍스트의 형태)
pos: String품사 태그
start_pos: usize시작 위치 (문자 단위, 0-based)
end_pos: usize끝 위치 (문자 단위, exclusive)
start_byte: usize시작 위치 (바이트 단위)
end_byte: usize끝 위치 (바이트 단위)
reading: Option<String>읽기 (발음)
lemma: Option<String>원형 (기본형)
cost: i32비용
features: String전체 품사 정보 (CSV feature string)
normalized: Option<String>정규화된 형태 (외래어 정규화 활성화 시)
Implementations§
Trait Implementations§
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more