KDHO
Kök ve Ek Duyarlı Hata Oranı · a root- and affix-aware word error rate. WER counts evlerde → evlerden (one suffix) exactly like a different word; KDHO charges a partial cost for affix errors and a full cost for a different root or a negation flip. Always 0 ≤ KDHO ≤ WER; lower is better.
WER, tek bir ek hatasını bambaşka bir kelimeyle aynı sayar. KDHO ek hatalarına kısmi, farklı köke ya da olumsuzluk değişimine tam ceza verir. Her zaman 0 ≤ KDHO ≤ WER; düşük olan iyidir.
| Case · Durum | Cost · Ceza |
|---|---|
| identical words · aynı kelime | 0 |
| different roots · farklı kök | 1 |
| negation differs (-mA, -(y)AmA, değil) · olumsuzluk farkı | 1 |
| a word cannot be analyzed · kelime çözümlenemedi | 1 |
| same root, affix difference · aynı kök, ek farkı | λ · dM |
dM is the normalized edit distance between the affix tags of the two words; λ = 0.5 by default. Deletions and insertions cost 1. · dM iki kelimenin ek etiketleri arasındaki normalize düzenleme uzaklığıdır; atlanan ve fazladan kelimeler 1 puandır.
# pip install kdho
import kdho
kdho.kdho("evlerde geldik", "evlerden geldik") # 0.125
kdho.score(references, hypotheses) # corpus level: kdho, wer, cer
Morphological analysis: Zeyrek 0.1.3. Context-free: spelling variants and synonyms count as full errors. This page runs kdho 0.1.1 with Pyodide in your browser. · Çözümleme bağlamdan bağımsızdır; yazım varyantları ve eş anlamlılar tam hata sayılır.