pub struct EojeolSurfaceResult {
pub correct: usize,
pub total: usize,
pub accuracy: f64,
}Expand description
어절 surface-only 메트릭 결과 (Sprint 133 P2).
Use case: 검색/인덱싱 use case 전용. POS와 형태소 split을 무시하고 surface 문자열 일치만으로 정답 판정. 색인 빌드 또는 부분 일치 검색 시스템의 정확도 추정에 사용.
의미 손실: 형태소 분석 품질은 측정하지 않음. 빈도/품사/동의어 처리를 다운스트림에서 사용한다면 본 메트릭은 부적합.
Fields§
§correct: usize어절 surface 일치 개수
total: usize어절 전체 개수
accuracy: f64어절 surface 정확도 (0.0 ~ 1.0)
Implementations§
Source§impl EojeolSurfaceResult
impl EojeolSurfaceResult
Sourcepub fn format_report(&self) -> String
pub fn format_report(&self) -> String
포맷된 보고서 생성
Trait Implementations§
Source§impl Clone for EojeolSurfaceResult
impl Clone for EojeolSurfaceResult
Source§fn clone(&self) -> EojeolSurfaceResult
fn clone(&self) -> EojeolSurfaceResult
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 EojeolSurfaceResult
impl RefUnwindSafe for EojeolSurfaceResult
impl Send for EojeolSurfaceResult
impl Sync for EojeolSurfaceResult
impl Unpin for EojeolSurfaceResult
impl UnsafeUnpin for EojeolSurfaceResult
impl UnwindSafe for EojeolSurfaceResult
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