pub struct NoriToken {
pub surface: String,
pub pos_tag: String,
pub start_offset: usize,
pub end_offset: usize,
pub lemma: Option<String>,
pub reading: Option<String>,
pub word_type: WordType,
pub is_decompound: bool,
}Expand description
Nori 토큰
Lucene Nori의 Token 속성과 호환
Fields§
§surface: String표면형
pos_tag: StringNori 스타일 품사 태그 (J, E 통합)
start_offset: usize시작 위치 (문자 오프셋)
end_offset: usize끝 위치 (문자 오프셋)
lemma: Option<String>원형 (기본형)
reading: Option<String>읽기 (발음)
word_type: WordType단어 타입 (KNOWN, UNKNOWN, etc.)
is_decompound: bool복합명사 분해 여부
Trait Implementations§
impl Eq for NoriToken
impl StructuralPartialEq for NoriToken
Auto Trait Implementations§
impl Freeze for NoriToken
impl RefUnwindSafe for NoriToken
impl Send for NoriToken
impl Sync for NoriToken
impl Unpin for NoriToken
impl UnsafeUnpin for NoriToken
impl UnwindSafe for NoriToken
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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