Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class TrsFactory(object):
"""
Factory for Transcription.
"""
__TRS = {"txt": Ascii,
"liatxt": Ascii,
"info": Ascii,
"csv": Ascii,
"lab": Ascii,
"ipulab": Ascii,
"ctm": ScliteCTM,
"eaf": Elan,
"intensity": Intensity,
"julius": JuliusIO,
"pitchtier": Pitch,
"hz": Pitch,
"tag": TranscriberAG,
"textgrid": TextGrid,
"trs": Transcriber
}
@staticmethod
def NewTrs(trs_type):
""" Return a new Transcription.
Parameters:
- trs_type
Exception: Exception
Return: Transcription
"""
try: