public void writeReport() { printGeneralStatistics(); printTagsErrorRank(); printGeneralConfusionTable(); } }
public void correctlyClassified(NameSample reference, NameSample prediction) { statsAdd(reference, prediction); }
try { reportOutputStream = new FileOutputStream(reportFile); reportListener = new TokenNameFinderFineGrainedReportListener(model.getSequenceCodec(), reportOutputStream); listeners.add(reportListener); reportListener.writeReport();
private void statsAdd(NameSample reference, NameSample prediction) { String[] refTags = sequenceCodec.encode(reference.getNames(), reference.getSentence().length); String[] predTags = sequenceCodec.encode(prediction.getNames(), prediction.getSentence().length); // we don' want it to compute token frequency, so we pass an array of empty strings instead // of tokens getStats().add(new String[reference.getSentence().length], refTags, predTags); }
try { reportOutputStream = new FileOutputStream(reportFile); reportListener = new TokenNameFinderFineGrainedReportListener(sequenceCodec, reportOutputStream); listeners.add(reportListener); reportListener.writeReport();
private void statsAdd(NameSample reference, NameSample prediction) { String[] refTags = sequenceCodec.encode(reference.getNames(), reference.getSentence().length); String[] predTags = sequenceCodec.encode(prediction.getNames(), prediction.getSentence().length); // we don' want it to compute token frequency, so we pass an array of empty strings instead // of tokens getStats().add(new String[reference.getSentence().length], refTags, predTags); }
public void writeReport() { printGeneralStatistics(); printTagsErrorRank(); printGeneralConfusionTable(); } }
try { reportOutputStream = new FileOutputStream(reportFile); reportListener = new TokenNameFinderFineGrainedReportListener(model.getSequenceCodec(), reportOutputStream); listeners.add(reportListener); reportListener.writeReport();
public void missclassified(NameSample reference, NameSample prediction) { statsAdd(reference, prediction); }
private void statsAdd(NameSample reference, NameSample prediction) { String[] refTags = sequenceCodec.encode(reference.getNames(), reference.getSentence().length); String[] predTags = sequenceCodec.encode(prediction.getNames(), prediction.getSentence().length); // we don' want it to compute token frequency, so we pass an array of empty strings instead // of tokens getStats().add(new String[reference.getSentence().length], refTags, predTags); }
public void writeReport() { printGeneralStatistics(); printTagsErrorRank(); printGeneralConfusionTable(); } }
try { reportOutputStream = new FileOutputStream(reportFile); reportListener = new TokenNameFinderFineGrainedReportListener(model.getSequenceCodec(), reportOutputStream); listeners.add(reportListener); reportListener.writeReport();
public void correctlyClassified(NameSample reference, NameSample prediction) { statsAdd(reference, prediction); }
try { reportOutputStream = new FileOutputStream(reportFile); reportListener = new TokenNameFinderFineGrainedReportListener(sequenceCodec, reportOutputStream); listeners.add(reportListener); reportListener.writeReport();
public void missclassified(NameSample reference, NameSample prediction) { statsAdd(reference, prediction); }
try { reportOutputStream = new FileOutputStream(reportFile); reportListener = new TokenNameFinderFineGrainedReportListener(sequenceCodec, reportOutputStream); listeners.add(reportListener); reportListener.writeReport();
public void correctlyClassified(NameSample reference, NameSample prediction) { statsAdd(reference, prediction); }
public void missclassified(NameSample reference, NameSample prediction) { statsAdd(reference, prediction); }