Ocronet.Dynamic.OcroFST.FstFactory.MakeOcroFST C# (CSharp) Method

MakeOcroFST() public static method

public static MakeOcroFST ( ) : OcroFST
return OcroFST
        public static OcroFST MakeOcroFST()
        {
            return new OcroFSTImpl();
        }

Usage Example

コード例 #1
0
ファイル: AStarUtil.cs プロジェクト: liaoheping/OCRonet
        public static void a_star_backwards(Floatarray costs_for_all_nodes, IGenericFst fst)
        {
            IGenericFst reverse = FstFactory.MakeOcroFST();

            FstUtil.fst_copy_reverse(reverse, fst, true); // creates an extra vertex
            AStarSearch a = new AStarSearch(reverse);

            a.Loop();
            costs_for_all_nodes.Copy(a.g);
            costs_for_all_nodes.Pop(); // remove the extra vertex
        }