Пример #1
0
        public static void ExportCategorySummary(IEnumerable<IGrouping<int, ClasterizedSentenceError>> errors, string fileName, Application oxlApp)
        {
            var summaries = _getSummariesForCategory(errors);
            var totalSummaries = _getTotalSummaryForCategory(summaries);

            var writer = new ErrorsSummaryWriter(fileName, oxlApp);
            writer._writeSummaryForCategory(summaries, totalSummaries);
            writer.Close();
        }
Пример #2
0
        public static void ExportTotalErrorsSummary(Dictionary<string, PackClasterizedErrors> errorClassificationData, string fileName, Application oxlApp)
        {
            var comprenoSummaries = _getPackSummary(errorClassificationData, pack => pack.ComprenoErrors).ToList();
            var ippiSummaries = _getPackSummary(errorClassificationData, pack => pack.IppiErrors).ToList();

            var comprenoTotals = _computeTotalSummary(comprenoSummaries);
            var ippiTotals = _computeTotalSummary(ippiSummaries);

            var writer = new ErrorsSummaryWriter(fileName, oxlApp);
            writer._writeTotalSummaries(comprenoSummaries, comprenoTotals, "Compreno");
            writer._writeTotalSummaries(ippiSummaries, ippiTotals, "Ippi");
            writer.Close();
        }