pub struct DualMetricResult {
pub morpheme: EvaluationResult,
pub eojeol_correct: usize,
pub eojeol_total: usize,
pub eojeol_accuracy: f64,
}Expand description
이중 메트릭 평가 결과 (Sprint 124)
형태소 레벨과 어절 레벨 정확도를 함께 보고합니다.
- Morpheme-level: 개별 형태소의 surface + POS 일치
- Eojeol-level: 한 어절 내 모든 형태소가 정확해야 어절 정답
어절 단위 평가는 KLUE DP처럼 어절 정보가 포함된 데이터셋에서만 의미 있음.
Fields§
§morpheme: EvaluationResult형태소 레벨 평가 결과 (기존 evaluate_dataset_sejong와 동일)
eojeol_correct: usize어절 단위 정답 개수
eojeol_total: usize어절 단위 전체 개수
eojeol_accuracy: f64어절 정확도 (0.0 ~ 1.0). 어절 정보 없는 데이터셋에서는 0.0.
Implementations§
Source§impl DualMetricResult
impl DualMetricResult
Sourcepub fn format_report(&self) -> String
pub fn format_report(&self) -> String
포맷된 보고서 생성
Trait Implementations§
Source§impl Clone for DualMetricResult
impl Clone for DualMetricResult
Source§fn clone(&self) -> DualMetricResult
fn clone(&self) -> DualMetricResult
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 DualMetricResult
impl RefUnwindSafe for DualMetricResult
impl Send for DualMetricResult
impl Sync for DualMetricResult
impl Unpin for DualMetricResult
impl UnsafeUnpin for DualMetricResult
impl UnwindSafe for DualMetricResult
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