public void outputTrainingData(String outputFile, List<Fortune> trainFortuneList){
        Writer writer = null;
        try {
            writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile), "utf-8"));
            for(String word : this.vocabulary) {
                writer.write(word + ", ");
            }
            writer.write("Class Label");
            writer.write('\n');
            for(Fortune fortune : trainFortuneList){
                for(Boolean wordVector : fortune.featureVector){
                    if(wordVector){
                        writer.write("1");
                    } else {
                        writer.write("0");
                    }
                    writer.write(", ");
                }
                if(fortune.isPredictive()){
                    writer.write("1");
                } else {
                    writer.write("0");
                }
                writer.write('\n');
            }
        } catch (IOException ex) {
            // report
        } finally {
            try {
                writer.close();
            } catch (Exception ex) {
                //Do something
            }
        }
    }