src/Generic/names/IdFDecoder.cpp
/**
 * Given a set of sentence tokens, _transforms them as necessary_, and
 * then calls decodeSentenceAsGiven -- results end up in sentenceTheory
 * one way or another
 */
Given a set of sentence tokens, _transforms them as necessary_, and
then calls decodeSentenceAsGiven -- results end up in sentenceTheory
one way or another
Given a set of sentence tokens _transforms them as necessary_ and then calls decodeSentenceAsGiven -- results end up in sentenceTheory one way or another
int IdFDecoder::decodeSentence(IdFSentenceTokens* sentenceTokens, 
		IdFSentenceTheory* sentenceTheory)
{
	int retval;
	if (_model->useLists()) {
		IdFSentenceTokens translatedTokens;
		IdFSentenceTheory translatedTheory;
		translateTokens(sentenceTokens, &translatedTokens);
		retval = decodeSentenceAsGiven(&translatedTokens, &translatedTheory);
		unTranslateTheory(&translatedTheory, sentenceTheory, sentenceTokens->getLength());
	} else retval = decodeSentenceAsGiven(sentenceTokens, sentenceTheory);
	return retval;
}
int IdFDecoder :: decodeSentence ( IdFSentenceTokens * sentenceTokens , IdFSentenceTheory * sentenceTheory ) { int retval ; if ( _model -> useLists ( ) ) { IdFSentenceTokens translatedTokens ; IdFSentenceTheory translatedTheory ; translateTokens ( sentenceTokens , & translatedTokens ) ; retval = decodeSentenceAsGiven ( & translatedTokens , & translatedTheory ) ; unTranslateTheory ( & translatedTheory , sentenceTheory , sentenceTokens -> getLength ( ) ) ; } else retval = decodeSentenceAsGiven ( sentenceTokens , sentenceTheory ) ; return retval ; }
Given a set of sentence tokens, _transforms them as necessary_, and
 then calls decodeSentenceAsGiven -- results end up in sentenceTheory
 one way or another
Given a set of sentence tokens _transforms them as necessary_ and then calls decodeSentenceAsGiven -- results end up in sentenceTheory one way or another