Example #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);
        }