private String buildTask1GoldElem(StringBuilder textBuilder,List<String> goldElems){
  String strGold;
  textBuilder.setLength(0);
  textBuilder.append("[");
  textBuilder.append(concatWithSeparator(goldElems,","));
  textBuilder.append("]");
  strGold=new String(textBuilder);
  return strGold;
}

private String buildTask1GoldElem ( StringBuilder textBuilder , List < String > goldElems ) { String strGold ; textBuilder . setLength ( 0 ) ; textBuilder . append ( "[" ) ; textBuilder . append ( concatWithSeparator ( goldElems , "," ) ) ; textBuilder . append ( "]" ) ; strGold = new String ( textBuilder ) ; return strGold ; }
helper method for generatetask1data , concatenates all json formatted tokens ( sorted by position ) which is then the gold solution and contains markers to all ne in the text fragment . this same format is produced by the js in the crowdflower . com task1 .
