Méthode | Description | |
---|---|---|
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 | |
Résultat | 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 | |
Résultat | void |
public Arcs ( Intarray ids, Intarray targets, Intarray outputs, Floatarray costs, int from ) : void | ||
ids | Intarray | |
targets | Intarray | |
outputs | Intarray | |
costs | Floatarray | |
from | int | |
Résultat | void |
public abstract BestPath ( string &result ) : double | ||
result | string | |
Résultat | double |
public GetTransitions ( Intarray tos, Intarray symbols, Floatarray costs, Intarray inputs, int from ) : void | ||
tos | Intarray | |
symbols | Intarray | |
costs | Floatarray | |
inputs | Intarray | |
from | int | |
Résultat | void |
public static MakeFst ( string name ) : |
||
name | string | имя класа |
Résultat |
public Rescore ( int from, int to, int symbol, float new_cost ) : void | ||
from | int | |
to | int | |
symbol | int | |
new_cost | float | |
Résultat | 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 | |
Résultat | void |
public abstract SetAccept ( int node, float cost = 0.0f ) : void | ||
node | int | |
cost | float | |
Résultat | void |
public abstract SetStart ( int node ) : void | ||
node | int | |
Résultat | void |
public SetString ( string text, Floatarray costs, Intarray ids ) : void | ||
text | string | |
costs | Floatarray | |
ids | Intarray | |
Résultat | void |