pub struct TerResult {
pub score: f64,
pub num_edits: usize,
pub num_shifts: usize,
pub ref_len: usize,
}Expand description
Result of a Translation Edit Rate computation.
Fields§
§score: f64TER score = (num_edits + num_shifts) / ref_len.
num_edits: usizeNumber of insert/delete/substitute edits after all shifts were applied.
num_shifts: usizeNumber of block shifts the greedy heuristic applied.
ref_len: usizeReference length used for normalisation.
Trait Implementations§
impl Copy for TerResult
impl StructuralPartialEq for TerResult
Auto Trait Implementations§
impl Freeze for TerResult
impl RefUnwindSafe for TerResult
impl Send for TerResult
impl Sync for TerResult
impl Unpin for TerResult
impl UnsafeUnpin for TerResult
impl UnwindSafe for TerResult
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