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

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

Constructor

Parameters:
is the input stream.

Definition at line 31 of file morpho_stream.cc.

{
  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(L"kIGNORAR");
  ca_kbarra = constants.getConstant(L"kBARRA");
  ca_kdollar = constants.getConstant(L"kDOLLAR");
  ca_kbegin = constants.getConstant(L"kBEGIN");
  ca_kmot = constants.getConstant(L"kMOT");
  ca_kmas = constants.getConstant(L"kMAS");
  ca_kunknown = constants.getConstant(L"kUNKNOWN");
  
  map<wstring, int, Ltstr> &tag_index = td->getTagIndex();
  ca_tag_keof = tag_index[L"TAG_kEOF"];  
  ca_tag_kundef = tag_index[L"TAG_kUNDEF"]; 
}


Generated by  Doxygen 1.6.0   Back to index