C# 클래스 Ocronet.Dynamic.OcroFST.BeamSearch

파일 보기 프로젝트 열기: nickun/OCRonet 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

BeamSearch() 공개 메소드

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

BestPath() 공개 메소드

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

Clear() 공개 메소드

public Clear ( ) : void
리턴 void

Radiate() 공개 메소드

The main loop iteration.
public Radiate ( ) : void
리턴 void

Relax() 공개 메소드

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
리턴 void

Traverse() 공개 메소드

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
리턴 void

TryAccept() 공개 메소드

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

beam_search() 공개 정적인 메소드

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
리턴 double

beam_search() 공개 정적인 메소드

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

beam_search() 공개 정적인 메소드

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
리턴 void