SetString() public method

simple interface for line recognizers
public SetString ( string text, Floatarray costs, Intarray ids ) : void
text string
costs Floatarray
ids Intarray
return void
Beispiel #1
0
 public static void fst_line(IGenericFst fst, string s)
 {
     int n = s.Length;
     Intarray inputs = new Intarray(n);
     for(int j = 0; j < n; j++)
         inputs[j] = (int)s[j];
     Floatarray costs = new Floatarray(n);
     costs.Fill(0f);
     fst.SetString(s, costs, inputs);
 }