public boolean trainOnCandidates ( ) { List < String > corpus = loadTrainingCorpus ( _trainingCorpusFile ) ; List < List < Acronym > > trainingExtractedCandidates = new ArrayList < List < Acronym > > ( ) ; for ( Integer docID = 0 ; docID < corpus . size ( ) ; ++ docID ) { // Adds to training examples, all the extracted pairs from the // current document. trainingExtractedCandidates . add ( extractCandidatePairs ( corpus . get ( docID ) ) ) ; } return _abbvHmm . train ( trainingExtractedCandidates , null , true ) ; }
Trains on candidate pairs extracted from the corpus