private string ClassifierRecall() { var report = "Recall:" + Environment.NewLine; foreach (var partOfSpeech in PartsOfSpeech.All()) { double recall = classifier.Recall(partOfSpeech, testSet); report += partOfSpeech + ": " + recall + Environment.NewLine; } return(report); }
private string ClassifierPrecision() { var report = "Precision:" + Environment.NewLine; foreach (var partOfSpeech in PartsOfSpeech.All()) { double precision = classifier.Precision(partOfSpeech, testSet); report += partOfSpeech + ": " + precision + Environment.NewLine; } return(report); }