private void incrementLmCounts(int[] languageCounts,List<TransitionState> fullViterbiStateSeq,Indexer<String> charIndexer){
  int spaceCharIndex=charIndexer.getIndex(" ");
  for (  TransitionState ts : fullViterbiStateSeq) {
    int currLanguage=ts.getLanguageIndex();
    if (currLanguage >= 0 && ts.getType() == TransitionStateType.TMPL && ts.getLmCharIndex() != spaceCharIndex) {
      languageCounts[currLanguage]+=1;
    }
  }
}

private void incrementLmCounts ( int [ ] languageCounts , List < TransitionState > fullViterbiStateSeq , Indexer < String > charIndexer ) { int spaceCharIndex = charIndexer . getIndex ( " " ) ; for ( TransitionState ts : fullViterbiStateSeq ) { int currLanguage = ts . getLanguageIndex ( ) ; if ( currLanguage >= 0 && ts . getType ( ) == TransitionStateType . TMPL && ts . getLmCharIndex ( ) != spaceCharIndex ) { languageCounts [ currLanguage ] += 1 ; } } }
pass over the decoded states to accumulate counts
