Пример #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);
        }