<commit_before>from collections import Counter
from textgrid import TextGrid, IntervalTier
from .aligner import AlignerParser

from polyglotdb.io.parsers.speaker import FilenameSpeakerParser


class LabbCatParser(AlignerParser):
    name = 'LabbCat'
    word_label = 'orthography'
    phone_label = 'segment'
    speaker_first = False

    def __init__(self, annotation_tiers, hierarchy, make_transcription=True,
                 stop_check=None, call_back=None):
        super(AlignerParser, self).__init__(annotation_tiers, hierarchy, make_transcription,
                                        False, stop_check, call_back)
        self.speaker_parser = FilenameSpeakerParser(0)<commit_msg>Revert LaBB-CAT parser to use transcript tier<commit_after>from collections import Counter
from textgrid import TextGrid, IntervalTier
from .aligner import AlignerParser

from polyglotdb.io.parsers.speaker import FilenameSpeakerParser


class LabbCatParser(AlignerParser):
    name = 'LabbCat'
    word_label = 'transcript'
    phone_label = 'segment'
    speaker_first = False

    def __init__(self, annotation_tiers, hierarchy, make_transcription=True,
                 stop_check=None, call_back=None):
        super(AlignerParser, self).__init__(annotation_tiers, hierarchy, make_transcription,
                                        False, stop_check, call_back)
        self.speaker_parser = FilenameSpeakerParser(0)
{'fraction_non_alphanumeric': 0.06704304869442484, 'fraction_numerical': 0.0014114326040931546, 'mean_word_length': 3.603896103896104, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '950365', 'n_tokens_mistral': 404, 'n_tokens_neox': 391, 'n_words': 91}