omorfi 0.9.9
Open morphology of Finnish
Data Structures | Public Member Functions | Protected Attributes
net.sf.hfst.WeightedTransducer Class Reference
Inheritance diagram for net.sf.hfst.WeightedTransducer:
net.sf.hfst.Transducer

Data Structures

class  IndexTable
 
class  Transition
 
class  TransitionIndex
 
class  TransitionTable
 

Public Member Functions

 WeightedTransducer (FileInputStream file, TransducerHeader h, TransducerAlphabet a) throws java.io.IOException
 
Collection< String > analyze (String input) throws NoTokenizationException
 

Protected Attributes

TransducerHeader header
 
TransducerAlphabet alphabet
 
Stack< int[]> stateStack
 
Hashtable< Integer, FlagDiacriticOperationoperations
 
LetterTrie letterTrie
 
IndexTable indexTable
 
TransitionTable transitionTable
 
Vector< String > displayVector
 
int[] outputString
 
Vector< Integer > inputString
 
int outputPointer
 
int inputPointer
 
float current_weight
 

Detailed Description

Reads the header, alphabet, index table and transition table and provides interfaces to them.

Constructor & Destructor Documentation

◆ WeightedTransducer()

net.sf.hfst.WeightedTransducer.WeightedTransducer ( FileInputStream  file,
TransducerHeader  h,
TransducerAlphabet  a 
) throws java.io.IOException

Read a transducer from data.

Parameters
filedata stream pointing to transudcer binary
hheader read from the stream
aalphabet read from the stream

Member Function Documentation

◆ analyze()

Collection< String > net.sf.hfst.WeightedTransducer.analyze ( String  input) throws NoTokenizationException

Analyse a string.

Parameters
inputa token to analyse
Returns
all possible analyses for input

Reimplemented from net.sf.hfst.Transducer.

Field Documentation

◆ alphabet

TransducerAlphabet net.sf.hfst.WeightedTransducer.alphabet
protected

alphabet

◆ current_weight

float net.sf.hfst.WeightedTransducer.current_weight
protected

weight

◆ displayVector

Vector<String> net.sf.hfst.WeightedTransducer.displayVector
protected

display vector

◆ header

TransducerHeader net.sf.hfst.WeightedTransducer.header
protected

header

◆ indexTable

IndexTable net.sf.hfst.WeightedTransducer.indexTable
protected

indices

◆ inputPointer

int net.sf.hfst.WeightedTransducer.inputPointer
protected

input pointer

◆ inputString

Vector<Integer> net.sf.hfst.WeightedTransducer.inputString
protected

input string

◆ letterTrie

LetterTrie net.sf.hfst.WeightedTransducer.letterTrie
protected

letters

◆ operations

Hashtable<Integer, FlagDiacriticOperation> net.sf.hfst.WeightedTransducer.operations
protected

flag operations

◆ outputPointer

int net.sf.hfst.WeightedTransducer.outputPointer
protected

output pointer

◆ outputString

int [] net.sf.hfst.WeightedTransducer.outputString
protected

output string

◆ stateStack

Stack<int[]> net.sf.hfst.WeightedTransducer.stateStack
protected

states

◆ transitionTable

TransitionTable net.sf.hfst.WeightedTransducer.transitionTable
protected

transitions


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