Ocronet.Dynamic.OcroFST.BeamSearch.beam_search C# (CSharp) Method

beam_search() public static method

public static beam_search ( string &result, Intarray inputs, Floatarray costs, OcroFST fst1, OcroFST fst2, int beam_width ) : double
result string
inputs Intarray
costs Floatarray
fst1 OcroFST
fst2 OcroFST
beam_width int
return double
        public static double beam_search(out string result, Intarray inputs, Floatarray costs, OcroFST fst1, OcroFST fst2,
                                         int beam_width)
        {
            Intarray v1 = new Intarray();
            Intarray v2 = new Intarray();
            Intarray o = new Intarray();
            //fprintf(stderr,"starting beam search\n");
            beam_search(v1, v2, inputs, o, costs, fst1, fst2, beam_width);
            //fprintf(stderr,"finished beam search\n");
            FstUtil.remove_epsilons(out result, o);
            return NarrayUtil.Sum(costs);
        }

Same methods

BeamSearch::beam_search ( string &result, OcroFST fst1, OcroFST fst2, int beam_width ) : double
BeamSearch::beam_search ( Intarray vertices1, Intarray vertices2, Intarray inputs, Intarray outputs, Floatarray costs, OcroFST fst1, OcroFST fst2, int beam_width ) : void