asrtoolkit/data_structures/corpus.py
def validate(self):
    " validate exemplar object by constraining that the filenames before the extension are the same "

    valid = True
    audio_filename = ".".join(self.audio_file.location.split(".")[:-1])
    transcript_filename = ".".join(self.transcript_file.location.split(".")[:-1])
    if audio_filename != transcript_filename:
      print(
        "Mismatch between audio and transcript filename - please check the following: \n" +
        ", ".join((audio_filename, transcript_filename))
      )
      valid = False

    return valid
 validate exemplar object by constraining that the filenames before the extension are the same 
validate exemplar object by constraining that the filenames before the extension are the same
validate exemplar object by constraining that the filenames before the extension are the same
def validate(self):
    valid = True
    audio_filename = ".".join(self.audio_file.location.split(".")[:-1])
    transcript_filename = ".".join(self.transcript_file.location.split(".")[:-1])
    if audio_filename != transcript_filename:
      print(
        "Mismatch between audio and transcript filename - please check the following: \n" +
        ", ".join((audio_filename, transcript_filename))
      )
      valid = False
    return valid
def validate ( self ) : valid = True audio_filename = "." . join ( self . audio_file . location . split ( "." ) [ : - 1 ] ) transcript_filename = "." . join ( self . transcript_file . location . split ( "." ) [ : - 1 ] ) if audio_filename != transcript_filename : print ( "Mismatch between audio and transcript filename - please check the following: \n" + ", " . join ( ( audio_filename , transcript_filename ) ) ) valid = False return valid
validate exemplar object by constraining that the filenames before the extension are the same
validate exemplar object by constraining that the filenames before the extension are the same
" validate exemplar object by constraining that the filenames before the extension are the same "
self