Skip to main content

evaluate_tokens_aligned_with_match

Function evaluate_tokens_aligned_with_match 

Source
pub fn evaluate_tokens_aligned_with_match(
    gold_tokens: &[GoldToken],
    pred_tokens: &[Token],
    pos_eq: PosMatchFn,
    surface_eq: SurfaceMatchFn,
) -> (usize, usize, usize, usize)
Expand description

Greedy alignment 기반 토큰 평가 (POS + surface 비교 함수 주입, Sprint 128 P2).

순서를 고려하되, 토큰 갯수 차이가 있어도 최선의 매칭을 시도합니다. pos_eq로 strict/lenient POS, surface_eq로 strict/canonical surface 모드 선택.

§Returns

(true_positives, false_positives, false_negatives, pos_match)