Logo Search packages:      
Sourcecode: apertium version File versions  Download package

MorphoStream2::MorphoStream2 ( FILE *  ftxt,
bool  d,
TaggerData *  t 
)

Constructor

Parameters:
is the input stream.
Word class and MorphoStream2 class definitions

Author:
Felipe Sánchez-Martínez

Definition at line 29 of file MorphoStream2.C.

{
  foundEOF = false;
  debug=d;
  td = t;
  me = td->getPatternList().newMatchExe();
  alphabet = td->getPatternList().getAlphabet();
  input = ftxt;
  ca_any_char = alphabet(PatternList::ANY_CHAR);
  ca_any_tag = alphabet(PatternList::ANY_TAG);
  
  ConstantManager &constants = td->getConstants();
  ca_kignorar = constants.getConstant("kIGNORAR");
  ca_kbarra = constants.getConstant("kBARRA");
  ca_kdollar = constants.getConstant("kDOLLAR");
  ca_kbegin = constants.getConstant("kBEGIN");
  ca_kmot = constants.getConstant("kMOT");
  ca_kmas = constants.getConstant("kMAS");
  ca_kunknown = constants.getConstant("kUNKNOWN");
  
  map<string, int> &tag_index = td->getTagIndex();
  ca_tag_keof = tag_index["TAG_kEOF"];  
  ca_tag_kundef = tag_index["TAG_kUNDEF"]; 
}


Generated by  Doxygen 1.6.0   Back to index