Commits

Egon Willighagen  committed 73fa873

Report on # sentences, and crashes

  • Participants
  • Parent commits 14de72a

Comments (0)

Files changed (1)

File src/main/java/uk/ac/cam/ch/wwmm/oscar/bjoc/io/RecoveredChemistryOutputStream.java

 			out.println(builder.toString());
 		}
 
+		// output sentence stats
+		out.println("<p>");
+		out.println("Number of sentences: " + chemistry.getSentenceCount() + "<br />");
+		out.println("Number of preparation phrases: " + chemistry.getPrepPhraseCount() + "<br />");
+//		out.println("Number of dissolve phrases: " + chemistry.getDissolvePhraseCount() + "<br />");
+		out.println("</p>");
+		Map<String,Throwable> crashes = chemistry.getCrashes();
+		for (String text : crashes.keySet()) {
+			out.println("<p>");
+			out.println("<b>" + crashes.get(text) + "</b><br />");
+			out.println(text);
+			out.println("</p>");
+		}
+
 		out.println("</div>");
 		out.flush();
 	}