public static List<String> extractOutcomeLabels(File featureVectorsFile) throws IOException {
  List<String> result=new ArrayList<>();
  List<String> lines=FileUtils.readLines(featureVectorsFile);
  for (  String line : lines) {
    String label=line.split("\\s")[0];
    result.add(label);
  }
  return result;
}

public static List < String > extractOutcomeLabels ( File featureVectorsFile ) throws IOException { List < String > result = new ArrayList < > ( ) ; List < String > lines = FileUtils . readLines ( featureVectorsFile ) ; for ( String line : lines ) { String label = line . split ( "\\s" ) [ 0 ] ; result . add ( label ) ; } return result ; }
extracts the outcome labels from the file ; it corresponds to the first token on each line .
