public static void writeSingleBest(Map<Integer,Sequence<IString>> translations,PrintStream singleBestWriter){
  assert translations != null;
  assert singleBestWriter != null;
  String nl=System.getProperty("line.separator");
  for (int i=0; i < translations.size(); ++i) {
    assert translations.containsKey(i);
    singleBestWriter.append(translations.get(i).toString() + nl);
  }
}

public static void writeSingleBest ( Map < Integer , Sequence < IString > > translations , PrintStream singleBestWriter ) { assert translations != null ; assert singleBestWriter != null ; String nl = System . getProperty ( "line.separator" ) ; for ( int i = 0 ; i < translations . size ( ) ; ++ i ) { assert translations . containsKey ( i ) ; singleBestWriter . append ( translations . get ( i ) . toString ( ) + nl ) ; } }
write single best translations to file .
