Метод | Описание | |
---|---|---|
AddTransition ( int from, int to, int symbol, float cost ) : void |
A variant of addTransition() with equal input and output.
|
|
AddTransition ( int from, int to, int output, float cost, int input ) : void |
Add a transition between the given states
|
|
Arcs ( Intarray ids, Intarray targets, Intarray outputs, Floatarray costs, int from ) : void |
Return an array of arcs leading from the given node. WARN_DEPRECATED
|
|
BestPath ( string &result ) : double |
Compute the best path through the language model. Useful for simple OCR tasks and for debugging.
|
|
Clear ( ) : void |
Clear the language model
|
|
Dispose ( ) : void |
destroy the language model
|
|
GetAcceptCost ( int node ) : float |
Get the accept cost of a given vertex (a cost to finish the line and quit).
|
|
GetStart ( ) : int |
Get the starting state.
|
|
GetTransitions ( Intarray tos, Intarray symbols, Floatarray costs, Intarray inputs, int from ) : void |
A variant of addTransition() with equal input and output.
|
|
MakeFst ( string name ) : |
Создает экземпляр класса, наследованного от IGenericFst
|
|
NewState ( ) : int |
Get a single new state
|
|
Rescore ( int from, int to, int symbol, float new_cost ) : void |
A variant of rescore() with equal input and output.
|
|
Rescore ( int from, int to, int output, float new_cost, int input ) : void |
Change a transition score between the given states
|
|
SetAccept ( int node, float cost = 0.0f ) : void |
Set a state as an accept state
|
|
SetStart ( int node ) : void |
Set the start state
|
|
SetString ( string text, Floatarray costs, Intarray ids ) : void |
simple interface for line recognizers
|
|
Special ( string s ) : int |
Obtain codes for "specials" (language model dependent)
|
|
isAccepting ( int node ) : bool |
Determine whether the given node is an accepting state.
|
|
nStates ( ) : int |
Get the number of states.
|
public AddTransition ( int from, int to, int symbol, float cost ) : void | ||
from | int | |
to | int | |
symbol | int | |
cost | float | |
Результат | void |
public abstract AddTransition ( int from, int to, int output, float cost, int input ) : void | ||
from | int | |
to | int | |
output | int | |
cost | float | |
input | int | |
Результат | void |
public Arcs ( Intarray ids, Intarray targets, Intarray outputs, Floatarray costs, int from ) : void | ||
ids | Intarray | |
targets | Intarray | |
outputs | Intarray | |
costs | Floatarray | |
from | int | |
Результат | void |
public abstract BestPath ( string &result ) : double | ||
result | string | |
Результат | double |
public GetTransitions ( Intarray tos, Intarray symbols, Floatarray costs, Intarray inputs, int from ) : void | ||
tos | Intarray | |
symbols | Intarray | |
costs | Floatarray | |
inputs | Intarray | |
from | int | |
Результат | void |
public static MakeFst ( string name ) : |
||
name | string | имя класа |
Результат |
public Rescore ( int from, int to, int symbol, float new_cost ) : void | ||
from | int | |
to | int | |
symbol | int | |
new_cost | float | |
Результат | void |
public Rescore ( int from, int to, int output, float new_cost, int input ) : void | ||
from | int | |
to | int | |
output | int | |
new_cost | float | |
input | int | |
Результат | void |
public abstract SetAccept ( int node, float cost = 0.0f ) : void | ||
node | int | |
cost | float | |
Результат | void |
public abstract SetStart ( int node ) : void | ||
node | int | |
Результат | void |
public SetString ( string text, Floatarray costs, Intarray ids ) : void | ||
text | string | |
costs | Floatarray | |
ids | Intarray | |
Результат | void |
public abstract Special ( string s ) : int | ||
s | string | |
Результат | int |