From 52b463e5653e9488336d01cf37ce0cbb166aaddf Mon Sep 17 00:00:00 2001 From: berndmoos Date: Tue, 5 Nov 2024 12:03:27 +0100 Subject: [PATCH] #497 --- .../comafunctions/CountSegments.xsl | 23 +++++++++++++++++++ .../comafunctions/SegmentsCounter.java | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/org/exmaralda/common/corpusbuild/comafunctions/CountSegments.xsl b/src/org/exmaralda/common/corpusbuild/comafunctions/CountSegments.xsl index 6cde49c4..c0b923af 100644 --- a/src/org/exmaralda/common/corpusbuild/comafunctions/CountSegments.xsl +++ b/src/org/exmaralda/common/corpusbuild/comafunctions/CountSegments.xsl @@ -5,6 +5,8 @@ cGAT GEN + + INEL HIAT @@ -12,6 +14,8 @@ SpeakerContribution_Word SpeakerContribution_Word + + SpeakerContribution_Utterance_Word SpeakerContribution_Utterance_Word @@ -82,6 +86,25 @@ + + + + + + + Utterances + + + + + + Punctuation + + + + + + diff --git a/src/org/exmaralda/common/corpusbuild/comafunctions/SegmentsCounter.java b/src/org/exmaralda/common/corpusbuild/comafunctions/SegmentsCounter.java index 120dd23f..53d8d521 100644 --- a/src/org/exmaralda/common/corpusbuild/comafunctions/SegmentsCounter.java +++ b/src/org/exmaralda/common/corpusbuild/comafunctions/SegmentsCounter.java @@ -40,7 +40,7 @@ public class SegmentsCounter { String currentFilename; Element currentElement; int count = 0; - private HashSet errorList = new HashSet(); + private HashSet errorList = new HashSet<>(); public SegmentsCounter() throws JDOMException, IOException { Document xslDocument = new IOUtilities()