示例#1
0
        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);
        }
示例#2
0
        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);
        }