HFST - Helsinki Finite-State Transducer Technology API  version 3.7.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
HfstXeroxRules.h File Reference

Declarations of HFST-XFST replace functions and data types. More...

#include "HfstTransducer.h"

Go to the source code of this file.

Classes

class  MarkUpRule
 Mark up rule has two markers on the right side of the mapping. Mapping is only left side of the mapping. More...
 
class  Rule
 A rule that contains mapping and context and replace type (if any). If rule is A -> B || L _ R , than mapping is cross product of transducers A and B, context is pair of transducers L and R, and replType is enum REPL_UP. More...
 

Namespaces

 hfst
 A namespace for HFST functions and datatypes.
 
 hfst::xeroxRules
 A namespace for HFST xeroxRules functions and data types.
 

Functions

HfstTransducer applyBoundaryMark (const HfstTransducer &t)
 It applies boundary marker from contexts (.#.) to t. More...
 
HfstTransducer bracketedReplace (const Rule &rule, bool optional)
 Unconditional replace, in multiple contexts first: (.* T<a:b>T .*) - [( .* L1 T<a:b>T R1 .*) u (.* L2 T<a:b>T R2 .*)...], where .* = [I:I (+ {tmpMarker (T), <,>} in alphabet) | <a:b>]* then: remove tmpMarker from transducer and alphabet, and do negation: .* - result from upper operations. More...
 
HfstTransducer constraintComposition (const HfstTransducer &t, const HfstTransducer &Constraint)
 Generalized Lenient Composition (by Anssi Yli-Jyr�) of a t and a Constraint. More about this composition can be found in: http://www.ling.helsinki.fi/users/aylijyra/all/YliJyra-2008b:trafropar:inp.pdf. More...
 
HfstTransducer expandContextsWithMapping (const HfstTransducerPairVector &ContextVector, const HfstTransducer &mappingWithBracketsAndTmpBoundary, const HfstTransducer &identityExpanded, ReplaceType replType, bool optional)
 It is used in bracketedReplace, when the replace expression has context. Cr' = (Rc .*) << Markers (<,>,|) .o. [I:I | <a:b>]* Cr = Cr | Cr' (same for left context, (.* Cl)) More...
 
void insertFreelyAllTheBrackets (HfstTransducer &t, bool optional)
 If optional is false, the function freely inserts in t @ and If it is true, it also inserts @ and More...
 
HfstTransducer parallelBracketedReplace (const std::vector< Rule > &ruleVector, bool optional)
 Bracketed replace for parallel rules. More...
 
HfstTransducer removeMarkers (const HfstTransducer &tr)
 Remove makers used in replace functions from a tr. More...
 

Detailed Description

Declarations of HFST-XFST replace functions and data types.