HFST - Helsinki Finite-State Transducer Technology - C++ API
version 3.9.1
|
One implementation of template class C in HfstTransition. More...
#include <HfstTropicalTransducerTransitionData.h>
Public Types | |
typedef std::string | SymbolType |
The input and output symbol type. More... | |
typedef std::set< SymbolType > | SymbolTypeSet |
A set of symbols. More... | |
typedef float | WeightType |
The weight type. More... | |
Public Member Functions | |
HFSTDLL const SymbolType & | get_input_symbol () const |
Get the input symbol. More... | |
HFSTDLL const SymbolType & | get_output_symbol () const |
Get the output symbol. More... | |
HFSTDLL WeightType | get_weight () const |
Get the weight. More... | |
HFSTDLL | HfstTropicalTransducerTransitionData () |
Create a HfstTropicalTransducerTransitionData with epsilon input and output strings and weight zero. More... | |
HFSTDLL | HfstTropicalTransducerTransitionData (const HfstTropicalTransducerTransitionData &data) |
Create a deep copy of HfstTropicalTransducerTransitionData data. More... | |
HFSTDLL | HfstTropicalTransducerTransitionData (SymbolType isymbol, SymbolType osymbol, WeightType weight) |
Create a HfstTropicalTransducerTransitionData with input symbol isymbol, output symbol osymbol and weight weight. More... | |
HFSTDLL bool | operator< (const HfstTropicalTransducerTransitionData &another) const |
Whether this transition is less than transition another. More... | |
HFSTDLL void | set_weight (WeightType w) |
Set the weight. More... | |
One implementation of template class C in HfstTransition.
A HfstTropicalTransducerTransitionData has an input symbol and an output symbol of type SymbolType (string) and a weight of type WeightType (float).
typedef std::string SymbolType |
The input and output symbol type.
typedef std::set<SymbolType> SymbolTypeSet |
A set of symbols.
typedef float WeightType |
The weight type.
|
inline |
Create a HfstTropicalTransducerTransitionData with epsilon input and output strings and weight zero.
|
inline |
Create a deep copy of HfstTropicalTransducerTransitionData data.
|
inline |
Create a HfstTropicalTransducerTransitionData with input symbol isymbol, output symbol osymbol and weight weight.
|
inline |
Get the input symbol.
|
inline |
Get the output symbol.
|
inline |
Get the weight.
|
inline |
Whether this transition is less than transition another.
/internal is it too slow if string comparison is used instead?
|
inline |
Set the weight.