pub struct NoriTokenizer { /* private fields */ }Expand description
Nori 토크나이저
Lucene Nori의 KoreanTokenizer와 호환되는 인터페이스
Implementations§
Source§impl NoriTokenizer
impl NoriTokenizer
Sourcepub fn new(
decompound_mode: DecompoundMode,
output_unknown_unigrams: bool,
) -> Result<Self>
pub fn new( decompound_mode: DecompoundMode, output_unknown_unigrams: bool, ) -> Result<Self>
새 Nori 토크나이저 생성
§Arguments
decompound_mode- 복합명사 분해 모드output_unknown_unigrams- 미등록어 유니그램 출력 여부
§Example
use mecab_ko_core::nori_compat::{NoriTokenizer, DecompoundMode};
let tokenizer = NoriTokenizer::new(DecompoundMode::Mixed, true).unwrap();§Errors
Returns an error if the internal tokenizer fails to initialize.
Auto Trait Implementations§
impl !Freeze for NoriTokenizer
impl !RefUnwindSafe for NoriTokenizer
impl Send for NoriTokenizer
impl !Sync for NoriTokenizer
impl Unpin for NoriTokenizer
impl UnsafeUnpin for NoriTokenizer
impl !UnwindSafe for NoriTokenizer
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> 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