pub struct ImprovedNbestSearcher { /* private fields */ }Expand description
개선된 N-best Viterbi 탐색기
각 노드에서 K개의 최선 후보를 유지하여 진정한 N-best 결과를 제공합니다.
Implementations§
Source§impl ImprovedNbestSearcher
impl ImprovedNbestSearcher
Sourcepub const fn with_max_candidates(self, k: usize) -> Self
pub const fn with_max_candidates(self, k: usize) -> Self
노드당 최대 후보 수 설정
Sourcepub fn with_space_penalty(self, penalty: SpacePenalty) -> Self
pub fn with_space_penalty(self, penalty: SpacePenalty) -> Self
띄어쓰기 패널티 설정
Sourcepub fn search<C: ConnectionCost>(
&self,
lattice: &mut Lattice,
conn_cost: &C,
) -> NbestResult
pub fn search<C: ConnectionCost>( &self, lattice: &mut Lattice, conn_cost: &C, ) -> NbestResult
Source§impl ImprovedNbestSearcher
기존 NbestSearcher와의 호환성을 위한 래퍼
impl ImprovedNbestSearcher
기존 NbestSearcher와의 호환성을 위한 래퍼
Sourcepub fn search_pairs<C: ConnectionCost>(
&self,
lattice: &mut Lattice,
conn_cost: &C,
) -> Vec<(Vec<NodeId>, i32)>
pub fn search_pairs<C: ConnectionCost>( &self, lattice: &mut Lattice, conn_cost: &C, ) -> Vec<(Vec<NodeId>, i32)>
기존 API 호환: (Vec<NodeId>, i32) 쌍의 벡터 반환
Trait Implementations§
Source§impl Clone for ImprovedNbestSearcher
impl Clone for ImprovedNbestSearcher
Source§fn clone(&self) -> ImprovedNbestSearcher
fn clone(&self) -> ImprovedNbestSearcher
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ImprovedNbestSearcher
impl RefUnwindSafe for ImprovedNbestSearcher
impl Send for ImprovedNbestSearcher
impl Sync for ImprovedNbestSearcher
impl Unpin for ImprovedNbestSearcher
impl UnsafeUnpin for ImprovedNbestSearcher
impl UnwindSafe for ImprovedNbestSearcher
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<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