Commit af390b65 authored by Dan Povey's avatar Dan Povey
Browse files

trunk: standardizing all perl and python scripts to start with a shebang...

trunk: standardizing all perl and python scripts to start with a shebang /usr/bin/env perl|python, and to be executable.  Minor script change to train_mono.sh to print better info in case of error.

git-svn-id: https://svn.code.sf.net/p/kaldi/code/trunk@5110 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
parent 26e5d788
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski) # Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski)
......
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0.
# 2013 University of Edinburgh (Author: Pawel Swietojanski) # 2013 University of Edinburgh (Author: Pawel Swietojanski)
......
#!/usr/bin/perl -w #!/usr/bin/env perl -w
# Copyright 2013 Arnab Ghoshal # Copyright 2013 Arnab Ghoshal
......
#!/usr/bin/perl -w #!/usr/bin/env perl -w
# Author: Peng Qi (pengqi@cs.stanford.edu) # Author: Peng Qi (pengqi@cs.stanford.edu)
# This script maps Switchboard speaker IDs to the true physical speakers # This script maps Switchboard speaker IDs to the true physical speakers
......
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# corrupts the wave files supplied via input pipe with the specified # corrupts the wave files supplied via input pipe with the specified
......
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0.
# creates a segments file in the provided data directory # creates a segments file in the provided data directory
......
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# script to generate the file_patterns of the AIR database # script to generate the file_patterns of the AIR database
......
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# script to generate multicondition training data / dev data / test data # script to generate multicondition training data / dev data / test data
import argparse, glob, math, os, random, scipy.io.wavfile, sys import argparse, glob, math, os, random, scipy.io.wavfile, sys
......
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# normalizes the wave files provided in input file list with a common scaling factor # normalizes the wave files provided in input file list with a common scaling factor
......
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# script to read rir files from rwcp/air/reverb2014 databases # script to read rir files from rwcp/air/reverb2014 databases
......
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0.
# Script to combine ctms for uniformly segmented, with overlaps # Script to combine ctms for uniformly segmented, with overlaps
......
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
......
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
......
#!/usr/bin/perl #!/usr/bin/env perl
# Add counts to an oovlist. # Add counts to an oovlist.
......
#!/usr/bin/perl #!/usr/bin/env perl
# This program takes the output of score_prons.pl and collates # This program takes the output of score_prons.pl and collates
# it for each (rule, destress) pair so that we get the # it for each (rule, destress) pair so that we get the
......
#!/usr/bin/perl #!/usr/bin/env perl
# This program reads and writes either a dictionary or just a list # This program reads and writes either a dictionary or just a list
......
#!/usr/bin/perl #!/usr/bin/env perl
# Reads a dictionary, and prints out a list of words that seem to be pronounced # Reads a dictionary, and prints out a list of words that seem to be pronounced
# as acronyms (not including plurals of acronyms, just acronyms). Uses # as acronyms (not including plurals of acronyms, just acronyms). Uses
......
#!/usr/bin/perl #!/usr/bin/env perl
# Reads a dictionary (for prons of letters), and an OOV list, # Reads a dictionary (for prons of letters), and an OOV list,
# and puts out candidate pronunciations of words in that list # and puts out candidate pronunciations of words in that list
......
#!/usr/bin/perl #!/usr/bin/env perl
# This script takes three command-line arguments (typically files, or "-"): # This script takes three command-line arguments (typically files, or "-"):
# the suffix rules (as output by get_rules.pl), the rule-hierarchy # the suffix rules (as output by get_rules.pl), the rule-hierarchy
......
#!/usr/bin/perl #!/usr/bin/env perl
#This reads in rules, of the form put out by get_rules.pl, e.g.: #This reads in rules, of the form put out by get_rules.pl, e.g.:
# ERT,,ER0 T, # ERT,,ER0 T,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment