pub struct EvaluationResult {Show 14 fields
pub total_sentences: usize,
pub total_gold_tokens: usize,
pub total_pred_tokens: usize,
pub true_positives: usize,
pub false_positives: usize,
pub false_negatives: usize,
pub exact_match_sentences: usize,
pub token_accuracy: f64,
pub sentence_accuracy: f64,
pub pos_accuracy: f64,
pub precision: f64,
pub recall: f64,
pub f1_score: f64,
pub pos_stats: HashMap<String, PosStats>,
}Expand description
평가 결과
Fields§
§total_sentences: usize총 테스트 문장 수
total_gold_tokens: usize총 정답 토큰 수
total_pred_tokens: usize총 예측 토큰 수
true_positives: usizeTrue Positive: 정확하게 예측한 토큰 수
false_positives: usizeFalse Positive: 잘못 예측한 토큰 수
false_negatives: usizeFalse Negative: 누락한 토큰 수
exact_match_sentences: usize완전히 일치한 문장 수
token_accuracy: f64토큰 정확도 (0.0 ~ 1.0)
sentence_accuracy: f64문장 정확도 (0.0 ~ 1.0)
pos_accuracy: f64품사 정확도 (0.0 ~ 1.0)
precision: f64Precision (0.0 ~ 1.0)
recall: f64Recall (0.0 ~ 1.0)
f1_score: f64F1 Score (0.0 ~ 1.0)
pos_stats: HashMap<String, PosStats>품사별 통계
Implementations§
Trait Implementations§
Source§impl Clone for EvaluationResult
impl Clone for EvaluationResult
Source§fn clone(&self) -> EvaluationResult
fn clone(&self) -> EvaluationResult
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 moreSource§impl Debug for EvaluationResult
impl Debug for EvaluationResult
Auto Trait Implementations§
impl Freeze for EvaluationResult
impl RefUnwindSafe for EvaluationResult
impl Send for EvaluationResult
impl Sync for EvaluationResult
impl Unpin for EvaluationResult
impl UnsafeUnpin for EvaluationResult
impl UnwindSafe for EvaluationResult
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