Skip to content

Commit

Permalink
minor revert, no need for try_into()
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Jul 26, 2022
1 parent c8537a5 commit 8f5c52c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use std::sync::Arc;
use std::cmp::Ordering;
use std::str::FromStr;
use std::error::Error;
use std::convert::TryInto;
use rayon::prelude::*;
use rustfst::prelude::*;

Expand Down Expand Up @@ -1751,7 +1750,7 @@ impl VariantModel {
variant_text += format!(" ({})", output_symbol).as_str(); //we encode the output symbol in the text otherwise the symbol table returns the old match
eprintln!(" (transition state {}->{}: {} ({}) -> {} and variant score {})", prevstate, nextstate, m.text, input_symbol, variant_text, -1.0 * variantresult.score(params.freq_weight).ln() as f32);
let osym = symtab_out.add_symbol(variant_text);
assert!(osym == output_symbol.try_into().unwrap());
assert!(osym == output_symbol);
}

//each transition gets a base cost of n (the number of input tokens it covers)
Expand Down

0 comments on commit 8f5c52c

Please sign in to comment.