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
# 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,
......
#!/usr/bin/perl #!/usr/bin/env perl
# This program creates suggested suffix rules from a dictionary. # This program creates suggested suffix rules from a dictionary.
# It outputs quadruples of the form: # It outputs quadruples of the form:
......
#!/usr/bin/perl #!/usr/bin/env perl
# This program enforces the rule that # This program enforces the rule that
# if a "more specific" rule applies, we cannot use the more general rule. # if a "more specific" rule applies, we cannot use the more general rule.
......
#!/usr/bin/perl #!/usr/bin/env perl
# This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl, # This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl,
# which is 7-tuples, one per line, of the form: # which is 7-tuples, one per line, of the form:
......
#!/usr/bin/perl #!/usr/bin/env perl
# Used in conjunction with get_rules.pl # Used in conjunction with get_rules.pl
# example input line: XANTHE Z AE1 N DH # example input line: XANTHE Z AE1 N DH
......
#!/usr/bin/perl #!/usr/bin/env perl
# This program takes candidate prons from "get_candidate_prons.pl" or # This program takes candidate prons from "get_candidate_prons.pl" or
# "limit_candidate_prons.pl", and a reference dictionary covering those words, # "limit_candidate_prons.pl", and a reference dictionary covering those words,
......
#!/usr/bin/perl #!/usr/bin/env perl
# This program takes the output of count_rules.pl, which is tuples # This program takes the output of count_rules.pl, which is tuples
# of the form # of the form
......
#!/usr/bin/perl #!/usr/bin/env perl
# This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl # This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl
# or reverse_candidates.pl, which is 7-tuples, one per line, of the form: # or reverse_candidates.pl, which is 7-tuples, one per line, of the form:
......
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0. # Apache 2.0.
......
#!/usr/bin/perl #!/usr/bin/env perl
use strict; use strict;
use warnings; use warnings;
......
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
......
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Jan Trmal) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Jan Trmal)
# Apache 2.0. # Apache 2.0.
......
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
......
#! /usr/bin/perl #!/usr/bin/env perl
use warnings; use warnings;
use strict; use strict;
......
#! /usr/bin/perl #!/usr/bin/env perl
use warnings; use warnings;
use strict; use strict;
......
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