@Override
public List<Pair<String, Double>> analyze(Document unknown) {
EventMap eventMap = new EventMap(unknown);
System.out.println("--- Unknown Event Set ---");
for(Event event : eventMap.uniqueEvents()){
System.out.println("'"+event.getEvent().replaceAll("'", "\\'")+"','"+eventMap.relativeFrequency(event)+"',");
}
List<Pair<String,Double>> results = new ArrayList<Pair<String,Double>>();
results.add(new Pair<String, Double>("No analysis performed.\n", 0.0));
return results;