public static String toSentence(List<? extends FeatureLabel> sentence){
  StringBuilder text=new StringBuilder();
  for (int i=0, sz=sentence.size(); i < sz; i++) {
    FeatureLabel iw=sentence.get(i);
    text.append(iw.word());
    if (i < sz - 1) {
      text.append(" ");
    }
  }
  return text.toString();
}

public static String toSentence ( List < ? extends FeatureLabel > sentence ) { StringBuilder text = new StringBuilder ( ) ; for ( int i = 0 , sz = sentence . size ( ) ; i < sz ; i ++ ) { FeatureLabel iw = sentence . get ( i ) ; text . append ( iw . word ( ) ) ; if ( i < sz - 1 ) { text . append ( " " ) ; } } return text . toString ( ) ; }
pieces a list of maplabels back together using word and setting a white space between each word
