Ocronet.Dynamic.OcroFST.FstUtil.fst_line C# (CSharp) Method

fst_line() public static method

public static fst_line ( IGenericFst fst, string s ) : void
fst Ocronet.Dynamic.Interfaces.IGenericFst
s string
return void
        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);
        }