omorfi 0.9.9
Open morphology of Finnish
Public Member Functions | Protected Attributes
net.sf.hfst.WeightedTransducer.Transition Class Reference

Public Member Functions

 Transition (int input, int output, long target, float w)
 
 Transition ()
 
Boolean matches (int symbol)
 
long target ()
 
int getOutput ()
 
int getInput ()
 
Boolean isFinal ()
 
float getWeight ()
 

Protected Attributes

int inputSymbol
 
int outputSymbol
 
long targetIndex
 
float weight
 

Detailed Description

A weighted transition.

Constructor & Destructor Documentation

◆ Transition() [1/2]

net.sf.hfst.WeightedTransducer.Transition.Transition ( int  input,
int  output,
long  target,
float  w 
)

Create a weighted transition

Parameters
inputinput symbol
outputoutput symbol
targettarget state index
wweight

◆ Transition() [2/2]

net.sf.hfst.WeightedTransducer.Transition.Transition ( )

Create default transition.

Member Function Documentation

◆ getInput()

int net.sf.hfst.WeightedTransducer.Transition.getInput ( )

Get input symbol

Returns
input symbol

◆ getOutput()

int net.sf.hfst.WeightedTransducer.Transition.getOutput ( )

Get output symbol.

Returns
output symbol

◆ getWeight()

float net.sf.hfst.WeightedTransducer.Transition.getWeight ( )

get weight.

Returns
weight

◆ isFinal()

Boolean net.sf.hfst.WeightedTransducer.Transition.isFinal ( )

Whether the state is final.

Returns
true if final, false otherweise.

◆ matches()

Boolean net.sf.hfst.WeightedTransducer.Transition.matches ( int  symbol)

Whether transition matches the symbol.

Parameters
symbolsymbol key
Returns
true if transition is for symbol, false otherwise

◆ target()

long net.sf.hfst.WeightedTransducer.Transition.target ( )

Get target state.

Returns
target state index.

Field Documentation

◆ inputSymbol

int net.sf.hfst.WeightedTransducer.Transition.inputSymbol
protected

input symbol

◆ outputSymbol

int net.sf.hfst.WeightedTransducer.Transition.outputSymbol
protected

output symbol

◆ targetIndex

long net.sf.hfst.WeightedTransducer.Transition.targetIndex
protected

target index

◆ weight

float net.sf.hfst.WeightedTransducer.Transition.weight
protected

weight


The documentation for this class was generated from the following file: