#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from clean_transcript import clean_transcript

ALPHABET_FILE_PATH = "/DeepSpeech/bin/bangor_welsh/alphabet.txt"

def validate_label(label):

    clean = clean_transcript(ALPHABET_FILE_PATH)
    cleaned, transcript = clean.clean(label)
    if cleaned:
        return transcript.lower()
    return None

[((10, 12, 10, 48), 'clean_transcript.clean_transcript', 'clean_transcript', ({(10, 29, 10, 47): 'ALPHABET_FILE_PATH'}, {}), '(ALPHABET_FILE_PATH)', False, 'from clean_transcript import clean_transcript\n')]