src/Generic/names/IdFTrainer.cpp
/**
 * puts the vocabulary from this training stream into _temporaryVocabTable
 */
puts the vocabulary from this training stream into _temporaryVocabTable
puts the vocabulary from this training stream into _temporaryVocabTable
void IdFTrainer::collectTemporaryVocab(UTF8InputStream &stream) {
	while (_sentence->readTrainingSentence(stream)) {
		for (int i = 0; i < _sentence->getLength(); i++) {
                        Symbol word(_sentence->getWord(i));
			_temporaryVocabTable->add(&word);
		}
	}
}
void IdFTrainer :: collectTemporaryVocab ( UTF8InputStream & stream ) { while ( _sentence -> readTrainingSentence ( stream ) ) { for ( int i = 0 ; i < _sentence -> getLength ( ) ; i ++ ) { Symbol word ( _sentence -> getWord ( i ) ) ; _temporaryVocabTable -> add ( & word ) ; } } }
puts the vocabulary from this training stream into _temporaryVocabTable
puts the vocabulary from this training stream into _temporaryVocabTable