src/Generic/names/IdFTrainer.cpp
/** connect vocabulary from IdFSentence for use in standalone IdF */
connect vocabulary from IdFSentence for use in standalone IdF
connect vocabulary from IdFSentence for use in standalone IdF
void IdFTrainer::collectVocabulary(IdFSentenceTokens * sentence) {
	for (int i = 0; i < sentence->getLength(); i++) {
		Symbol s = sentence->getWord(i);
			_model->addToVocab(sentence->getWord(i));
	}
}
void IdFTrainer :: collectVocabulary ( IdFSentenceTokens * sentence ) { for ( int i = 0 ; i < sentence -> getLength ( ) ; i ++ ) { Symbol s = sentence -> getWord ( i ) ; _model -> addToVocab ( sentence -> getWord ( i ) ) ; } }
connect vocabulary from IdFSentence for use in standalone IdF
connect vocabulary from IdFSentence for use in standalone IdF