C# Class Ocronet.Dynamic.OcroFST.BeamSearch

ファイルを表示 Open project: nickun/OCRonet Class Usage Examples

Public Methods

Method Description
BeamSearch ( OcroFST fst1, OcroFST fst2, int beam_width ) : System
BestPath ( Intarray v1, Intarray v2, Intarray inputs, Intarray outputs, Floatarray costs ) : void
Clear ( ) : void
Radiate ( ) : void

The main loop iteration.

Relax ( int f1, int f2, int t1, int t2, float cost, int arc_id1, int arc_id2, int input, int intermediate, int output, float base_cost, int trail_index ) : void

This looks at the transition from state pair (f1,f2) -> (t1,t2), withthe given cost.

Traverse ( int n1, int n2, float cost, int trail_index ) : void

Call relax() for each arc going out of the given node.

TryAccept ( int i ) : void

Relax the accept arc from the beam node number i. Origin name: try_accept

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

Method Details

BeamSearch() public method

public BeamSearch ( OcroFST fst1, OcroFST fst2, int beam_width ) : System
fst1 OcroFST
fst2 OcroFST
beam_width int
return System

BestPath() public method

public BestPath ( Intarray v1, Intarray v2, Intarray inputs, Intarray outputs, Floatarray costs ) : void
v1 Intarray
v2 Intarray
inputs Intarray
outputs Intarray
costs Floatarray
return void

Clear() public method

public Clear ( ) : void
return void

Radiate() public method

The main loop iteration.
public Radiate ( ) : void
return void

Relax() public method

This looks at the transition from state pair (f1,f2) -> (t1,t2), withthe given cost.
public Relax ( int f1, int f2, int t1, int t2, float cost, int arc_id1, int arc_id2, int input, int intermediate, int output, float base_cost, int trail_index ) : void
f1 int
f2 int
t1 int
t2 int
cost float
arc_id1 int
arc_id2 int
input int
intermediate int
output int
base_cost float
trail_index int
return void

Traverse() public method

Call relax() for each arc going out of the given node.
public Traverse ( int n1, int n2, float cost, int trail_index ) : void
n1 int
n2 int
cost float
trail_index int
return void

TryAccept() public method

Relax the accept arc from the beam node number i. Origin name: try_accept
public TryAccept ( int i ) : void
i int
return void

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

beam_search() public static method

public static beam_search ( string &result, OcroFST fst1, OcroFST fst2, int beam_width ) : double
result string
fst1 OcroFST
fst2 OcroFST
beam_width int
return double

beam_search() public static method

public static beam_search ( Intarray vertices1, Intarray vertices2, Intarray inputs, Intarray outputs, Floatarray costs, OcroFST fst1, OcroFST fst2, int beam_width ) : void
vertices1 Intarray
vertices2 Intarray
inputs Intarray
outputs Intarray
costs Floatarray
fst1 OcroFST
fst2 OcroFST
beam_width int
return void