summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 26e5d78)
raw | patch | inline | side by side (parent: 26e5d78)
author | Dan Povey <dpovey@gmail.com> | |
Tue, 2 Jun 2015 23:03:11 +0000 (23:03 +0000) | ||
committer | Dan Povey <dpovey@gmail.com> | |
Tue, 2 Jun 2015 23:03:11 +0000 (23:03 +0000) |
403 files changed:
index 0bdc98196f059d949872606d7ae7fc97eae67a0f..251394b5a6496c16f2ff4a1924b80004b475ff08 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski)
index 703504344ad827a37eb128a8f35bb08f5cbfce05..f0b85c65b4231dadf8e8823681f3be9f8b7da739 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0.
# 2013 University of Edinburgh (Author: Pawel Swietojanski)
index ce32fd28d39481cf9b165a3782c5c3c23c2dab05..db6718e27cb37ef6629f59d8d968db7eca27dac5 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2013 Arnab Ghoshal
diff --git a/egs/aspire/s5/local/fisher_fix_speakerid.pl b/egs/aspire/s5/local/fisher_fix_speakerid.pl
index 8933055bdf9972fbd06b6186c026433964b4e2c8..60b999b3b5f5fd78c0e1312464ac03a0e0bf41aa 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Author: Peng Qi (pengqi@cs.stanford.edu)
# This script maps Switchboard speaker IDs to the true physical speakers
diff --git a/egs/aspire/s5/local/multi_condition/corrupt.py b/egs/aspire/s5/local/multi_condition/corrupt.py
index 9b6c07e869a6cafe5ef154c5e0b0f8ab222e82de..6d98a83a5ed3f6de0cfd7a4a316326660c18931e 100755 (executable)
+#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# corrupts the wave files supplied via input pipe with the specified
diff --git a/egs/aspire/s5/local/multi_condition/create_uniform_segments.py b/egs/aspire/s5/local/multi_condition/create_uniform_segments.py
+#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0.
# creates a segments file in the provided data directory
diff --git a/egs/aspire/s5/local/multi_condition/get_air_file_patterns.py b/egs/aspire/s5/local/multi_condition/get_air_file_patterns.py
index a68062482b33b3a368281246bdf57516c5e8dc52..cc06f58616a1a263a0ab7ecb818f068571dc4915 100755 (executable)
+#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# script to generate the file_patterns of the AIR database
diff --git a/egs/aspire/s5/local/multi_condition/get_reverberate_parameter_lists.py b/egs/aspire/s5/local/multi_condition/get_reverberate_parameter_lists.py
index c4b099e644c2a032630b705cd3f5af163082c446..3d58b8811d6c0a703724113957b42c6c8e0a2d85 100755 (executable)
+#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# script to generate multicondition training data / dev data / test data
import argparse, glob, math, os, random, scipy.io.wavfile, sys
diff --git a/egs/aspire/s5/local/multi_condition/normalize_wavs.py b/egs/aspire/s5/local/multi_condition/normalize_wavs.py
index 42317ecd2b94e0c2e1e477580a2437db355eec56..362401b974dd7c4e7553a52b42815415980d4ef3 100755 (executable)
+#!/usr/bin/env python
# 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
diff --git a/egs/aspire/s5/local/multi_condition/read_rir.py b/egs/aspire/s5/local/multi_condition/read_rir.py
index b05d53420d7f36ffe5b4d8c3336f8148d7248e9c..7fb16b3ff8d98a6d7d1d9dfebdb575be44fd3708 100755 (executable)
+#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# script to read rir files from rwcp/air/reverb2014 databases
diff --git a/egs/aspire/s5/local/multi_condition/resolve_ctm_overlaps.py b/egs/aspire/s5/local/multi_condition/resolve_ctm_overlaps.py
+#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0.
# Script to combine ctms for uniformly segmented, with overlaps
index 3bf644bb672eb93f1f1931ca958baee1b423219c..255432bbceb9dd64d72e86fc03fffad176679def 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
index 101834e86edc9e752547184aa3a68dc4542efa94..d19db421a9fbedfe7bf27c5ada4e37bc04d1e163 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
index 409277c7235400208c61f8aebd9a5532d64b9c55..a2ace7e9af2c90fa2c2cf196033211a32911f003 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Add counts to an oovlist.
index 2805e98c3e137e6ff226dc9ef12061effad9b2dc..1c6cfc4a54787914396d6195989440bde73449ca 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes the output of score_prons.pl and collates
# it for each (rule, destress) pair so that we get the
index 1210bb5e65e19694bf3af01594ba6c5564bc0b18..5e32823ef924f5b2a3dcf1b6ee69d3f73b901b5a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program reads and writes either a dictionary or just a list
diff --git a/egs/aurora4/s5/local/dict/find_acronyms.pl b/egs/aurora4/s5/local/dict/find_acronyms.pl
index ed4655afa4a36d31c590e67cefa2b6a33c5f0f4f..55e474c40566b7113529c06c0b3d7ac827702af8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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
diff --git a/egs/aurora4/s5/local/dict/get_acronym_prons.pl b/egs/aurora4/s5/local/dict/get_acronym_prons.pl
index 3f9936818ff34aaa9386193b3b7bce2c611d8d82..6294b7046e2f8dbbb1f1d8e250233c4f88b6bd1e 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Reads a dictionary (for prons of letters), and an OOV list,
# and puts out candidate pronunciations of words in that list
diff --git a/egs/aurora4/s5/local/dict/get_candidate_prons.pl b/egs/aurora4/s5/local/dict/get_candidate_prons.pl
index b13efd2039093f3f2de31dfd5037d1acf56373a4..b091c6d767e03b5705814bcb5c3c08d30e2c4abe 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This script takes three command-line arguments (typically files, or "-"):
# the suffix rules (as output by get_rules.pl), the rule-hierarchy
diff --git a/egs/aurora4/s5/local/dict/get_rule_hierarchy.pl b/egs/aurora4/s5/local/dict/get_rule_hierarchy.pl
index 35805b46b897f1d1008e3e3801f4354ef1f34dc4..d7c13a8df57b6991b1abb7aee7d403b6c7db9508 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#This reads in rules, of the form put out by get_rules.pl, e.g.:
# ERT,,ER0 T,
index a5b57b08872de328026f7f56870d815a67f5fbcb..b10eccc9171687df31b65cbc827bac55c5a1b17b 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program creates suggested suffix rules from a dictionary.
# It outputs quadruples of the form:
diff --git a/egs/aurora4/s5/local/dict/limit_candidate_prons.pl b/egs/aurora4/s5/local/dict/limit_candidate_prons.pl
index ceff9fbadfc9c18177e3825c0edd8bc7492daec1..b01218f6e966c027afe18da57490059b4f0a8cd3 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program enforces the rule that
# if a "more specific" rule applies, we cannot use the more general rule.
diff --git a/egs/aurora4/s5/local/dict/reverse_candidates.pl b/egs/aurora4/s5/local/dict/reverse_candidates.pl
index d5c5effc226000dc70b61082519df1802c52072d..5b7aabd8abdff14ed6a43f30077d1284e7b8f440 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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:
index 75681711bbdc39711e0711787ba05a94c424f367..2cd38c54b6a29e648671af4bae63a86b28d91723 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Used in conjunction with get_rules.pl
# example input line: XANTHE Z AE1 N DH
index fd5a004d812066bc5a463c01891bb0e87bdf33b4..6aa72e4215859a37042566ca2cd1b971ff1cea9c 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes candidate prons from "get_candidate_prons.pl" or
# "limit_candidate_prons.pl", and a reference dictionary covering those words,
index 8d165f7f1f63d4e901e06fad0bdb754ba5dab448..252d94677d527cdcf5f90e1fc22a434f0c4011ae 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes the output of count_rules.pl, which is tuples
# of the form
diff --git a/egs/aurora4/s5/local/dict/select_candidate_prons.pl b/egs/aurora4/s5/local/dict/select_candidate_prons.pl
index d0018c98af4a6e73ab120e4ae8398c6b8aa390da..a24ccdd4de896a1f0e25808a5af42653e6292590 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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:
index 0e5d71f791dbc8a90c5f57f5be16fc81e3dfd0b2..6429411b86429f8eb9e82ba8ccc210473adbdac7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 6831d2d7b4a3cfb8d779dd93c106ac72578618f7..234e4add1edd557ad42b39d76be92d24dea18f13 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 11f33a189f13385971a2a5e469563439c7510782..0c5fe4cc9d506914dc6cc8a35eb0339af9e67041 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index b0570429341753e91d80ba9f5d44d15405149271..48fc3dec101dc5bc33e019601c411fb0571cc0c8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/aurora4/s5/local/normalize_transcript.pl b/egs/aurora4/s5/local/normalize_transcript.pl
index 9dd67af3dd9ae20bff5e7caea51b079df3574633..09cee06172ec63bb2de123f19bc0ac9efd997095 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
+#!/usr/bin/env python
#################################################
## PTDNN - Python Toolkit for Deep Neural Network
## Author: Yajie Miao
+#!/usr/bin/env python
#################################################
## PTDNN - Python Toolkit for Deep Neural Network
## Author: Yajie Miao
diff --git a/egs/babel/s5/local/annotated_kwlist_to_KWs.pl b/egs/babel/s5/local/annotated_kwlist_to_KWs.pl
index 58f31c985f88e68700926399aeb9d9ed439abd54..198da36da5add0af1c6141c03a7c7bd23ea0021a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
diff --git a/egs/babel/s5/local/augment_original_stm.pl b/egs/babel/s5/local/augment_original_stm.pl
index 9058ae314cebc6f54ca3bbbbcdc3e3a11505c867..b35e4abc92f5a282bad02f23ca667b81f50737eb 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (Author: Jan Trmal)
# Apache 2.0.
diff --git a/egs/babel/s5/local/build_edit_distance_fst.pl b/egs/babel/s5/local/build_edit_distance_fst.pl
index aa6a6317c3d6b7ee0c1a0f556c7c4b3fc3b4143e..51c46667727024fc225641506920dc1d6404aa8e 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index a3eba3c00f14bbea20237844e01205e1f3729a35..7d779321810c39ea6222c90f3b90ad299eadad31 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index 101834e86edc9e752547184aa3a68dc4542efa94..d19db421a9fbedfe7bf27c5ada4e37bc04d1e163 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
index 409277c7235400208c61f8aebd9a5532d64b9c55..a2ace7e9af2c90fa2c2cf196033211a32911f003 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Add counts to an oovlist.
index 2805e98c3e137e6ff226dc9ef12061effad9b2dc..1c6cfc4a54787914396d6195989440bde73449ca 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes the output of score_prons.pl and collates
# it for each (rule, destress) pair so that we get the
index 1210bb5e65e19694bf3af01594ba6c5564bc0b18..5e32823ef924f5b2a3dcf1b6ee69d3f73b901b5a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program reads and writes either a dictionary or just a list
index ed4655afa4a36d31c590e67cefa2b6a33c5f0f4f..55e474c40566b7113529c06c0b3d7ac827702af8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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
diff --git a/egs/babel/s5/local/dict/get_acronym_prons.pl b/egs/babel/s5/local/dict/get_acronym_prons.pl
index 3f9936818ff34aaa9386193b3b7bce2c611d8d82..6294b7046e2f8dbbb1f1d8e250233c4f88b6bd1e 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Reads a dictionary (for prons of letters), and an OOV list,
# and puts out candidate pronunciations of words in that list
diff --git a/egs/babel/s5/local/dict/get_candidate_prons.pl b/egs/babel/s5/local/dict/get_candidate_prons.pl
index b13efd2039093f3f2de31dfd5037d1acf56373a4..b091c6d767e03b5705814bcb5c3c08d30e2c4abe 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This script takes three command-line arguments (typically files, or "-"):
# the suffix rules (as output by get_rules.pl), the rule-hierarchy
diff --git a/egs/babel/s5/local/dict/get_rule_hierarchy.pl b/egs/babel/s5/local/dict/get_rule_hierarchy.pl
index 35805b46b897f1d1008e3e3801f4354ef1f34dc4..d7c13a8df57b6991b1abb7aee7d403b6c7db9508 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#This reads in rules, of the form put out by get_rules.pl, e.g.:
# ERT,,ER0 T,
index a5b57b08872de328026f7f56870d815a67f5fbcb..b10eccc9171687df31b65cbc827bac55c5a1b17b 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program creates suggested suffix rules from a dictionary.
# It outputs quadruples of the form:
diff --git a/egs/babel/s5/local/dict/limit_candidate_prons.pl b/egs/babel/s5/local/dict/limit_candidate_prons.pl
index ceff9fbadfc9c18177e3825c0edd8bc7492daec1..b01218f6e966c027afe18da57490059b4f0a8cd3 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program enforces the rule that
# if a "more specific" rule applies, we cannot use the more general rule.
diff --git a/egs/babel/s5/local/dict/reverse_candidates.pl b/egs/babel/s5/local/dict/reverse_candidates.pl
index d5c5effc226000dc70b61082519df1802c52072d..5b7aabd8abdff14ed6a43f30077d1284e7b8f440 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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:
index 75681711bbdc39711e0711787ba05a94c424f367..2cd38c54b6a29e648671af4bae63a86b28d91723 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Used in conjunction with get_rules.pl
# example input line: XANTHE Z AE1 N DH
index fd5a004d812066bc5a463c01891bb0e87bdf33b4..6aa72e4215859a37042566ca2cd1b971ff1cea9c 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes candidate prons from "get_candidate_prons.pl" or
# "limit_candidate_prons.pl", and a reference dictionary covering those words,
index 8d165f7f1f63d4e901e06fad0bdb754ba5dab448..252d94677d527cdcf5f90e1fc22a434f0c4011ae 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes the output of count_rules.pl, which is tuples
# of the form
diff --git a/egs/babel/s5/local/dict/select_candidate_prons.pl b/egs/babel/s5/local/dict/select_candidate_prons.pl
index d0018c98af4a6e73ab120e4ae8398c6b8aa390da..a24ccdd4de896a1f0e25808a5af42653e6292590 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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:
index 567392caa8b1c9174fb090e0d3f52a30650cb3c7..fbb6e95286df14555b0ac55b56b5814d4058e2b5 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0.
index a20be87d4272972809a9cebfe9775bf7e4fa68c6..a724ad77f1a3ab7ade2a5a9132e9723b28ee071f 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
use warnings;
index 0e5d71f791dbc8a90c5f57f5be16fc81e3dfd0b2..6429411b86429f8eb9e82ba8ccc210473adbdac7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 682c4e86d3416ac53376a3d588781ce4156fe65b..29afc73e4732264231f1d369b8547533787390a8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Jan Trmal)
# Apache 2.0.
index 6831d2d7b4a3cfb8d779dd93c106ac72578618f7..234e4add1edd557ad42b39d76be92d24dea18f13 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index a44d0197c2c8c83d78fb8a2f11982f91e9464afb..7b2ad530fa4d0a51f8f646cb0e199fc6d5aa633b 100755 (executable)
-#! /usr/bin/perl
+#!/usr/bin/env perl
use warnings;
use strict;
-#! /usr/bin/perl
+#!/usr/bin/env perl
use warnings;
use strict;
index 176fc13541bcbbf7ae0813fc4e90c7073f99d280..47cc3dc27411dbb10482701fcb7331bfc88c92ba 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0.
diff --git a/egs/babel/s5/local/kws_oracle_threshold.pl b/egs/babel/s5/local/kws_oracle_threshold.pl
index 2d2f22ea4a0db813891f47165736be9c64ed01a9..e8ec2199432bca8e37818d42a2a81005c18db2bf 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
diff --git a/egs/babel/s5/local/make_lexicon_fst_special.pl b/egs/babel/s5/local/make_lexicon_fst_special.pl
index 9e13a910c53cadddc93cbd3619103d44e110b75c..d696fe633ae00589d46d39c45f75f7506d9740f1 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (author: Daniel Povey)
# makes lexicon FST -- special version only for use in keyword search
index a8a9f17baf9c136648409acc6bef17d06a2de61d..ef43f27efbef6c5fe38ced5f289a57c2f2ddaec0 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index b0570429341753e91d80ba9f5d44d15405149271..48fc3dec101dc5bc33e019601c411fb0571cc0c8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/babel/s5/local/normalize_transcript.pl b/egs/babel/s5/local/normalize_transcript.pl
index 9dd67af3dd9ae20bff5e7caea51b079df3574633..09cee06172ec63bb2de123f19bc0ac9efd997095 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/babel/s5/local/prepare_acoustic_training_data.pl b/egs/babel/s5/local/prepare_acoustic_training_data.pl
index 2129522dedbb4d9a33a4adc82c03e9bae3a4d53c..6cf875d3a7f0b0f71b3dd1a4d958a87d757cf35f 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
########################################################################
index 11e19b6cb9c393887ee30239532bb47fd5776cc1..721322f68ab2caa291d394c4b4828f9d81236368 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
use Data::Dumper;
index 06fb379b2fc730c2a50692f447b6b6d6eaf789e2..31407ae010bf197e2c5389d251bd01e0985356e0 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
use Encode;
index e303bf5eb8ef31d3dd2e71e42a0264e69b296f5d..910703db99652e307b167b76a39f66885d567fcf 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index 6474d53a365847a7d47ea8df97571ebcf6832e60..ab560639c06c06f6c9da50a561244c19f1c11669 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
################################################################################
index e6b4b235c2edaaa9e867125d7a63a09769149802..ecbb43d85e7f845ff691033807bee266c865addd 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 Karlsruhe Institute of Technology (Author: Jonas Gehring)
# Apache 2.0.
index 2b2666672efd1f2082858c6d0fe5dfc547721d0b..b5a1fec048dc4cf304658842636a0ce46081f425 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 Karlsruhe Institute of Technology (Author: Jonas Gehring)
# Apache 2.0.
+#!/usr/bin/env python
#################################################
## PTDNN - Python Toolkit for Deep Neural Network
## Author: Yajie Miao
+#!/usr/bin/env python
#################################################
## PTDNN - Python Toolkit for Deep Neural Network
## Author: Yajie Miao
diff --git a/egs/babel/s5b/local/annotated_kwlist_to_KWs.pl b/egs/babel/s5b/local/annotated_kwlist_to_KWs.pl
index 58f31c985f88e68700926399aeb9d9ed439abd54..198da36da5add0af1c6141c03a7c7bd23ea0021a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
diff --git a/egs/babel/s5b/local/apply_map_tab_preserving.pl b/egs/babel/s5b/local/apply_map_tab_preserving.pl
index 0c3e09a35f9f71e857567ecf30bab28a392f2d00..44d565cec05cd4aac5b5113b5f1c78699bc8b51a 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey)
# Apache 2.0.
diff --git a/egs/babel/s5b/local/augment_original_stm.pl b/egs/babel/s5b/local/augment_original_stm.pl
index 55cd23bc2de862c8e45fc88178b2ceebe85cc375..5a9895d884ec11be7d618895c9901fe7695df04a 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (Author: Jan Trmal)
# Apache 2.0.
diff --git a/egs/babel/s5b/local/build_edit_distance_fst.pl b/egs/babel/s5b/local/build_edit_distance_fst.pl
index aa6a6317c3d6b7ee0c1a0f556c7c4b3fc3b4143e..51c46667727024fc225641506920dc1d6404aa8e 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index a3eba3c00f14bbea20237844e01205e1f3729a35..7d779321810c39ea6222c90f3b90ad299eadad31 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index 101834e86edc9e752547184aa3a68dc4542efa94..d19db421a9fbedfe7bf27c5ada4e37bc04d1e163 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
index 567392caa8b1c9174fb090e0d3f52a30650cb3c7..fbb6e95286df14555b0ac55b56b5814d4058e2b5 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0.
index a20be87d4272972809a9cebfe9775bf7e4fa68c6..a724ad77f1a3ab7ade2a5a9132e9723b28ee071f 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
use warnings;
index 0e5d71f791dbc8a90c5f57f5be16fc81e3dfd0b2..6429411b86429f8eb9e82ba8ccc210473adbdac7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 6831d2d7b4a3cfb8d779dd93c106ac72578618f7..234e4add1edd557ad42b39d76be92d24dea18f13 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index a44d0197c2c8c83d78fb8a2f11982f91e9464afb..7b2ad530fa4d0a51f8f646cb0e199fc6d5aa633b 100755 (executable)
-#! /usr/bin/perl
+#!/usr/bin/env perl
use warnings;
use strict;
-#! /usr/bin/perl
+#!/usr/bin/env perl
use warnings;
use strict;
index 176fc13541bcbbf7ae0813fc4e90c7073f99d280..47cc3dc27411dbb10482701fcb7331bfc88c92ba 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0.
diff --git a/egs/babel/s5b/local/kws_oracle_threshold.pl b/egs/babel/s5b/local/kws_oracle_threshold.pl
index 2d2f22ea4a0db813891f47165736be9c64ed01a9..e8ec2199432bca8e37818d42a2a81005c18db2bf 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
diff --git a/egs/babel/s5b/local/make_lexicon_fst_special.pl b/egs/babel/s5b/local/make_lexicon_fst_special.pl
index 9e13a910c53cadddc93cbd3619103d44e110b75c..d696fe633ae00589d46d39c45f75f7506d9740f1 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (author: Daniel Povey)
# makes lexicon FST -- special version only for use in keyword search
index a1fb6076e3dfdeb4f51cf46c0584ed99b8a84ca6..e49ac972169120b1e0ce6e494d0fa1485c2f3bb1 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index b0570429341753e91d80ba9f5d44d15405149271..48fc3dec101dc5bc33e019601c411fb0571cc0c8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/babel/s5b/local/normalize_transcript.pl b/egs/babel/s5b/local/normalize_transcript.pl
index 9dd67af3dd9ae20bff5e7caea51b079df3574633..09cee06172ec63bb2de123f19bc0ac9efd997095 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/babel/s5b/local/prepare_acoustic_training_data.pl b/egs/babel/s5b/local/prepare_acoustic_training_data.pl
index 05f7e85d0442914438a6e15fb132b6aa9abfa010..4234d570dfd39e3be138343f5fff38cb320662aa 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
########################################################################
index e0f6ef3e044f52cfc4dd7b623e6eb6722ad1669c..721e56a0dcfd14d44fff91b8c801508661fd5fa0 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
use Data::Dumper;
index ff65132df21b708ce61acd7d7cdd4e65e2d27075..edf1b43676d019050e172f46b2e9e30b4ea55c69 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
use Encode;
diff --git a/egs/babel/s5b/local/resegment/evaluate_segmentation.pl b/egs/babel/s5b/local/resegment/evaluate_segmentation.pl
index 9c0dcaae6c81c8eae333c15c5be5713bc239c0ea..06a762d7762f91e28348546516225b546642c499 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2014 Johns Hopkins University (Author: Sanjeev Khudanpur), Vimal Manohar
# Apache 2.0
index e303bf5eb8ef31d3dd2e71e42a0264e69b296f5d..910703db99652e307b167b76a39f66885d567fcf 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index 57efe1bc18699eb40fa866552a0c1a2cafa28abe..4f7fc058f96d7e336cd31a58a24d47869264ff34 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0.
index 6474d53a365847a7d47ea8df97571ebcf6832e60..ab560639c06c06f6c9da50a561244c19f1c11669 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
################################################################################
+#!/usr/bin/env python
#################################################
## PTDNN - Python Toolkit for Deep Neural Network
## Author: Yajie Miao
+#!/usr/bin/env python
#################################################
## PTDNN - Python Toolkit for Deep Neural Network
## Author: Yajie Miao
diff --git a/egs/babel/s5c/local/annotated_kwlist_to_KWs.pl b/egs/babel/s5c/local/annotated_kwlist_to_KWs.pl
index 58f31c985f88e68700926399aeb9d9ed439abd54..198da36da5add0af1c6141c03a7c7bd23ea0021a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
diff --git a/egs/babel/s5c/local/apply_map_tab_preserving.pl b/egs/babel/s5c/local/apply_map_tab_preserving.pl
index 0c3e09a35f9f71e857567ecf30bab28a392f2d00..44d565cec05cd4aac5b5113b5f1c78699bc8b51a 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey)
# Apache 2.0.
diff --git a/egs/babel/s5c/local/augment_original_stm.pl b/egs/babel/s5c/local/augment_original_stm.pl
index 55cd23bc2de862c8e45fc88178b2ceebe85cc375..5a9895d884ec11be7d618895c9901fe7695df04a 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (Author: Jan Trmal)
# Apache 2.0.
diff --git a/egs/babel/s5c/local/build_edit_distance_fst.pl b/egs/babel/s5c/local/build_edit_distance_fst.pl
index aa6a6317c3d6b7ee0c1a0f556c7c4b3fc3b4143e..51c46667727024fc225641506920dc1d6404aa8e 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index a3eba3c00f14bbea20237844e01205e1f3729a35..7d779321810c39ea6222c90f3b90ad299eadad31 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index 101834e86edc9e752547184aa3a68dc4542efa94..d19db421a9fbedfe7bf27c5ada4e37bc04d1e163 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
index 567392caa8b1c9174fb090e0d3f52a30650cb3c7..fbb6e95286df14555b0ac55b56b5814d4058e2b5 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0.
index a20be87d4272972809a9cebfe9775bf7e4fa68c6..a724ad77f1a3ab7ade2a5a9132e9723b28ee071f 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
use warnings;
index 0e5d71f791dbc8a90c5f57f5be16fc81e3dfd0b2..6429411b86429f8eb9e82ba8ccc210473adbdac7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 6831d2d7b4a3cfb8d779dd93c106ac72578618f7..234e4add1edd557ad42b39d76be92d24dea18f13 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index a44d0197c2c8c83d78fb8a2f11982f91e9464afb..7b2ad530fa4d0a51f8f646cb0e199fc6d5aa633b 100755 (executable)
-#! /usr/bin/perl
+#!/usr/bin/env perl
use warnings;
use strict;
-#! /usr/bin/perl
+#!/usr/bin/env perl
use warnings;
use strict;
index 176fc13541bcbbf7ae0813fc4e90c7073f99d280..47cc3dc27411dbb10482701fcb7331bfc88c92ba 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0.
diff --git a/egs/babel/s5c/local/kws_oracle_threshold.pl b/egs/babel/s5c/local/kws_oracle_threshold.pl
index 2d2f22ea4a0db813891f47165736be9c64ed01a9..e8ec2199432bca8e37818d42a2a81005c18db2bf 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
diff --git a/egs/babel/s5c/local/make_lexicon_fst_special.pl b/egs/babel/s5c/local/make_lexicon_fst_special.pl
index 9e13a910c53cadddc93cbd3619103d44e110b75c..d696fe633ae00589d46d39c45f75f7506d9740f1 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (author: Daniel Povey)
# makes lexicon FST -- special version only for use in keyword search
index a1fb6076e3dfdeb4f51cf46c0584ed99b8a84ca6..e49ac972169120b1e0ce6e494d0fa1485c2f3bb1 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index b0570429341753e91d80ba9f5d44d15405149271..48fc3dec101dc5bc33e019601c411fb0571cc0c8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/babel/s5c/local/normalize_transcript.pl b/egs/babel/s5c/local/normalize_transcript.pl
index 9dd67af3dd9ae20bff5e7caea51b079df3574633..09cee06172ec63bb2de123f19bc0ac9efd997095 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/babel/s5c/local/prepare_acoustic_training_data.pl b/egs/babel/s5c/local/prepare_acoustic_training_data.pl
index 05f7e85d0442914438a6e15fb132b6aa9abfa010..4234d570dfd39e3be138343f5fff38cb320662aa 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
########################################################################
index e0f6ef3e044f52cfc4dd7b623e6eb6722ad1669c..721e56a0dcfd14d44fff91b8c801508661fd5fa0 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
use Data::Dumper;
index ff65132df21b708ce61acd7d7cdd4e65e2d27075..edf1b43676d019050e172f46b2e9e30b4ea55c69 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
use Encode;
diff --git a/egs/babel/s5c/local/resegment/evaluate_segmentation.pl b/egs/babel/s5c/local/resegment/evaluate_segmentation.pl
index 9c0dcaae6c81c8eae333c15c5be5713bc239c0ea..06a762d7762f91e28348546516225b546642c499 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2014 Johns Hopkins University (Author: Sanjeev Khudanpur), Vimal Manohar
# Apache 2.0
index e303bf5eb8ef31d3dd2e71e42a0264e69b296f5d..910703db99652e307b167b76a39f66885d567fcf 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index 57efe1bc18699eb40fa866552a0c1a2cafa28abe..4f7fc058f96d7e336cd31a58a24d47869264ff34 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0.
index 6474d53a365847a7d47ea8df97571ebcf6832e60..ab560639c06c06f6c9da50a561244c19f1c11669 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use Getopt::Long;
################################################################################
diff --git a/egs/callhome_egyptian/s5/local/split_alt_punc.py b/egs/callhome_egyptian/s5/local/split_alt_punc.py
old mode 100644 (file)
new mode 100755 (executable)
new mode 100755 (executable)
index 101834e86edc9e752547184aa3a68dc4542efa94..d19db421a9fbedfe7bf27c5ada4e37bc04d1e163 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
diff --git a/egs/chime3/s5/local/find_noisy_transcripts.pl b/egs/chime3/s5/local/find_noisy_transcripts.pl
index 720c320c0685a9a173037a7da30cf949d17a83e8..fdeb38d9444a9bf22a72b9824f9ef23a4ef1fddc 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 0e5d71f791dbc8a90c5f57f5be16fc81e3dfd0b2..6429411b86429f8eb9e82ba8ccc210473adbdac7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 6831d2d7b4a3cfb8d779dd93c106ac72578618f7..234e4add1edd557ad42b39d76be92d24dea18f13 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/chime3/s5/local/normalize_transcript.pl b/egs/chime3/s5/local/normalize_transcript.pl
index 9dd67af3dd9ae20bff5e7caea51b079df3574633..09cee06172ec63bb2de123f19bc0ac9efd997095 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 4ff0296751be514b806519cc4d6020f509d7afc0..d032313de4944d9c0f1ef74ac1cdc9d6eab55dbe 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
diff --git a/egs/chime_wsj0/s5/local/find_noisy_transcripts.pl b/egs/chime_wsj0/s5/local/find_noisy_transcripts.pl
index 720c320c0685a9a173037a7da30cf949d17a83e8..fdeb38d9444a9bf22a72b9824f9ef23a4ef1fddc 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/chime_wsj0/s5/local/find_transcripts.pl b/egs/chime_wsj0/s5/local/find_transcripts.pl
index 0e5d71f791dbc8a90c5f57f5be16fc81e3dfd0b2..6429411b86429f8eb9e82ba8ccc210473adbdac7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 6831d2d7b4a3cfb8d779dd93c106ac72578618f7..234e4add1edd557ad42b39d76be92d24dea18f13 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/chime_wsj0/s5/local/normalize_transcript.pl b/egs/chime_wsj0/s5/local/normalize_transcript.pl
index 9dd67af3dd9ae20bff5e7caea51b079df3574633..09cee06172ec63bb2de123f19bc0ac9efd997095 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/csj/s5/local/csj_make_trans/csj2kaldi4m.pl b/egs/csj/s5/local/csj_make_trans/csj2kaldi4m.pl
-#! /usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2015 Tokyo Institute of Technology (Authors: Takafumi Moriya and Takahiro Shinozaki)
# 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe)
diff --git a/egs/csj/s5/local/csj_make_trans/csjconnect.pl b/egs/csj/s5/local/csj_make_trans/csjconnect.pl
-#! /usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2015 Tokyo Institute of Technology (Authors: Takafumi Moriya and Takahiro Shinozaki)
# 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe)
-#! /usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2015 Tokyo Institute of Technology (Authors: Takafumi Moriya and Takahiro Shinozaki)
# 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe)
diff --git a/egs/csj/s5/local/csj_make_trans/vocab2dic.pl b/egs/csj/s5/local/csj_make_trans/vocab2dic.pl
-#! /usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2015 Tokyo Institute of Technology (Authors: Takafumi Moriya and Takahiro Shinozaki)
# 2015 Mitsubishi Electric Research Laboratories (Author: Shinji Watanabe)
diff --git a/egs/fisher_callhome_spanish/s5/local/spron.pl b/egs/fisher_callhome_spanish/s5/local/spron.pl
index b903d9e4df834e4a76b282e0fdab90999825cfc9..55581bdc014e9ec55f12bf18dab523c415b4d89d 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Oct 21, 2015 : Gaurav Kumar (Johns Hopkins University)
# GNU General Public License, v3.0
diff --git a/egs/fisher_english/s5/local/fisher_fix_speakerid.pl b/egs/fisher_english/s5/local/fisher_fix_speakerid.pl
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Author: Peng Qi (pengqi@cs.stanford.edu)
# This script maps Switchboard speaker IDs to the true physical speakers
diff --git a/egs/fisher_swbd/s5/local/fisher_map_words.pl b/egs/fisher_swbd/s5/local/fisher_map_words.pl
index edd6c0296ab69542c22599da07ac4240d2b95d84..cf078830b444a2500d60cc9c2c1194f434a54de4 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2013 Arnab Ghoshal
diff --git a/egs/fisher_swbd/s5/local/format_acronyms_ctm_eval2000.py b/egs/fisher_swbd/s5/local/format_acronyms_ctm_eval2000.py
index b7a8fc2468eaf2fa35d1b9e7ccb0fec13bddc3d4..f2b594804f8e97effc1899ccb9495262306d8de4 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# convert acronyms in swbd decode result to fisher convention
# e.g. convert things like en_4156 B 414.26 0.65 u._c._l._a. to
# en_4156 B 414.26 0.16 u
diff --git a/egs/fisher_swbd/s5/local/format_acronyms_ctm_rt03.py b/egs/fisher_swbd/s5/local/format_acronyms_ctm_rt03.py
index e3bc5e86b46e52af3e327684b7c5eb996d6e8b65..81acf3a5ff6928bccd7390f877a97aaffc405fe3 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# convert acronyms in swbd decode result to fisher convention
# e.g. convert things like en_4156 B 414.26 0.65 u._c._l._a. to
# en_4156 B 414.26 0.16 u
diff --git a/egs/fisher_swbd/s5/local/format_acronyms_dict.py b/egs/fisher_swbd/s5/local/format_acronyms_dict.py
index 1249b44ef71f660ab0a25d17910c4f463f39a22b..61bdd9aac3493eebf0994a68673907ce48e2c29c 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# convert acronyms in swbd dict to fisher convention
# IBM to i._b._m.
# BBC to b._b._c.
diff --git a/egs/fisher_swbd/s5/local/map_acronyms_transcripts.py b/egs/fisher_swbd/s5/local/map_acronyms_transcripts.py
-#!/usr/bin/python
+#!/usr/bin/env python
# convert acronyms in swbd transcript to fisher convention
# accoring to first two columns in the input acronyms mapping
diff --git a/egs/fisher_swbd/s5/local/swbd1_map_words.pl b/egs/fisher_swbd/s5/local/swbd1_map_words.pl
index 0f2472a7685039474368698c154a8968313db3b5..39f90d72816f02cdbc7b3fd4020fefdcc4dd5234 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Modified from swbd_map_words.pl in Kaldi s5 recipe to make pattern
# matches case-insensitive --Arnab (Jan 2013)
diff --git a/egs/gale_arabic/s5/local/normalize_transcript_BW.pl b/egs/gale_arabic/s5/local/normalize_transcript_BW.pl
index 92326c5ceb689eb470d71f9b904f2c352e4032e6..df01c5d7b85c27186e8cb9536f85dc8ab7b571c5 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2014 QCRI (author: Ahmed Ali)
# Apache 2.0
diff --git a/egs/gale_mandarin/s5/local/gale_normalize.pl b/egs/gale_mandarin/s5/local/gale_normalize.pl
index be5577a80d6b474d14f35608c119d68b4a5dea5c..05237495dcd8cdef15d91bad7a806c6ad8b7bd78 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright Chao Weng
# normalizations for hkust trascript
diff --git a/egs/gale_mandarin/s5/local/gale_segment.py b/egs/gale_mandarin/s5/local/gale_segment.py
index 582f053fa4df753145867a9c122af75e3992246f..975ddb9c1437de708ea3b77dd404b8d6fa83d892 100755 (executable)
+#!/usr/bin/env python
#coding:utf-8
#!/usr/bin/env python
import sys
index 3d89e9a74c3e026b6e5095268779f0bbc0536d3b..3ca1c31134113e0ea1e1fe8f8d56d1ae3d579f88 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
use strict;
# Copyright 2012 Arnab Ghoshal
index a7073c5eadc849d8937567833e67ebd028e05bc0..dc2433808b36225076294ea9e256aa7df1a7eea5 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index aa61e353810f4ab6cb542388206e986bfb59784d..f1eee6a245ca931aaa744be2b9aefaed84d58f8a 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 5dd07fe8d302bdc6221199c0ad4dd01844f3aa8d..9b45b2d229a9e9a41fa3c820fe080954ff7d3e39 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 1368d52d232592fea59005d8b755f5fca9a81d4c..88aa5faa662ac951e1f10f55e27ce402496a5224 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 70fd87272885ed6c9214ba5e1874d99617ed6d4d..309262896fe09a5a4b25f8590d42571f77787feb 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index f56db6b9f36b3e5a6a93b0f619229e4a670d9268..8c3b8e1b5f9a98897817ee2909baf4207ef9bc91 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 179546b11c14f946bef0686d024a343430d9c64b..4f359450c146cd6f26187c0593449a0110e12bae 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index c0ad960bfa438541ab0f8c6a72c27669fdcc7ecb..0266cd0764562c0587c2309287dcda6b4e6f53d2 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 65ced00a8f5e806f80f662dab381c282b039c8de..5eb2e61f43fc1459d35e591f57172ddc8bb1d1d9 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index db12e70c17e8fd2a0a524bb3aa7469475acb5d98..0686c39c468e9184ed26dcf9a1cd7cdaaaf212cc 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index c605659e105c40a7806038161034e06dae68ce06..962ef386763beca10c009efb53b0faac24e90fd1 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 9f9054e1795ab693bea1097eb5dccac905c870cb..ded04bb4b4930898b50d517ad35be1a45957e75d 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index fecbdc83368fc99a0211698e69b27b4190187d62..049802b08884c7779948ad19c2bf05768cbe7c09 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index dfe4b13d14df6a570fdf57e190a45bbde82e598e..748c94cade002a643fbedce45f11397983677077 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index bd3a2b7944d3f97844438388edaff9d7df810d70..c0e7e6336830d1689a8cd72650be993dc6bceae9 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index abd63f65e7a57d9d58226ab94481a6850c828a00..14d898f663072c7a76b018c9228755e6018b2d97 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 72a1f0bdd7dc9d407b99a839dd5ffdd47df1f883..5cf6d320e44c6e112887c53df0c8488ca042c87e 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# If the command-line argument is 4, this script prints "0 1 2 3";
index 742294745bb3a852fa197c261d485ce981ea0dbd..66dac6eb914ab414d3abbc4f9177abae4eb6d97f 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# If the command-line argument is 4, this script prints "0 1 2 3";
# If the command-line argument is 20, it prints 10 through 29.
index d08c4279e4be15c22d80295a133487ca58c9a24a..ad85ef349931fba5401b3e8b11530cf8b3b1fdd7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 1e9c291b4cd17b50722d283ae18e97a7ca932c74..9e088889cc2b8f4b13dcae7d77c8457c70463367 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 5bcab59840ceee2302816481a2a34e11c82eeaf0..532d7f295eae8f6c85766b7b1eea72c8f8cd840c 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index de993db67f7f4c2c673fa681af1d150df9db7fb0..ffeeb8eb6af3c4f319f31ebff80be388d8f59e1a 100755 (executable)
--- a/egs/gp/s1/utils/s2eps.pl
+++ b/egs/gp/s1/utils/s2eps.pl
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 8cee6df94a55477495b780704a25e1af1cd20e31..3ff85dfe3bbe02b9e0329505c957ea527de67af3 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 1521504f261205b6aed5da74f6dfb53d345fae18..164aa22bad6df020f97a076ccd60bfaf382acbaf 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index f71ef80e549b63319d265d364b817deac1b2f9c9..ab6bcfe5d8ef3dc1ab606b851c4ff0e92298c11b 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 54a9ff21f365665e354b4531144073138a1cb9f8..71492652c50ce8c2081ada9ae3a53b08c58dbb29 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 0c9e6417c826f15673fd693d36f950830f3456ce..0dfb7ba5fd3cf84a961f050eeeeaf43f3a103a78 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 8cade6743c7dcc3fe1f88415a51b1db3c5f1b0e2..0c37bda3cfb4511ee709f5379ea0a25f067212ae 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
use strict;
# Copyright 2012 Arnab Ghoshal
index a7073c5eadc849d8937567833e67ebd028e05bc0..dc2433808b36225076294ea9e256aa7df1a7eea5 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index f9eb4d96e148f292eb1480da53b721f594925bce..c5a6135d96bf0b2217417e68d51ecd7cafe0c71e 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal; Milos Janda
index 4a8ab734fd29cd82a725b0600d8e4046018473be..1ed595cd6c61800b77f54f4d41605f51334b100a 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal; Milos Janda
index 76a81046a739e00d92266dd9a915bab837fcb3f9..5593b9d3cf43183f634fb92fe24fdc4a3fbe2224 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 78d801e89f4723a29bcf9b734232ffdfa49ff36d..551e257408ec9a10653c04aa60118e60f2cef058 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal; Milos Janda
index db56da8bb6d76cc2d305ad9d3af862c29f4256a0..40d06b87cecb56a3c824fe22e46e01d88da7d1fd 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 5fb0d1170cfc8aa0889b2ba8d3269d71eb6631ed..4571baf0ffd52f2a7ff9387878228edb928584a7 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Milos Janda; Arnab Ghoshal
index 45e9b023c8fb21d4e507ebe8e44aef5e0cd7ebd4..7738e8ebe9ae0b2a52905799e10fa0c2cbc69325 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 7a24b0a404a5e98253272de29bbdf356ac3571e3..455ec55b98885b9bf1f5cb439c2d5bacf15d338e 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Milos Janda
index c5016fb85753879136dc4ebde12770d6a84b2a7e..0688ffd752b6746a4e498630cc7f27e2e488f950 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Milos Janda
index 6dec75309bf4988aeccfdb1a7b914029b34b2d4d..aea3d65f52a281da4ee5a2afcab6014a375e311b 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index a5aaa026c34d6d4f4d0baef5fef9fe5ce540449d..d3b610c04fec7a6d5423a6cd0b5a28c23e9dcc98 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Milos Janda; Arnab Ghoshal
index 3f4edafac1a257d5ffc771e46cd3a339a852aefa..3e544e0cb91541d01c15b8f8fff1b6bf16b5a335 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 6bb4cb9c5f64d417a9b73533ced876eb8fb229a8..99bf1984c21c48daf725479bf4aa43a9a019c966 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Milos Janda
index bf5a5b085bfc3d54fe21d56954ffd64495f452c0..fd376639b3ab037d722b10a6fa9e9fd52e69e24b 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index ba06e20a474def4ac2cceea22d0c314ccd2c262a..2fe03f7ffe49eecd38fb5415b02fc057243bf002 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 9e1526d0e8cfe23992781c928e4f9111f5688c72..51db830e43342d063693629f6a19a7b50e8d80b5 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 6e8578cc93d648dd7dc4f445c91afb24cd633c6a..21e46baaa77542bd3e4e055248c85324da498067 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 7310bc5b832d250cc916d700ce8260d33edf1980..616d7ce51b072cc7317f91ee7e665b35693d8ebc 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 2f9f23d3681e4fd4fc98ca58f43014075166b580..c380c6bb09aebc620bbd729a5cace03b28c8f4f8 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 10e98cb8f30609ad250670f7f0419b648a522705..d38c7bc2741b60edba56248840771e70e980db60 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
diff --git a/egs/hkust/s5/local/ext/hkust_word2ch_tran.pl b/egs/hkust/s5/local/ext/hkust_word2ch_tran.pl
index f88975de7523e10dc90dff7211fee2b06cba7dbc..f449112f58deaebb9db099313fb160386721bb7e 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 Hong Kong University of Science and Technology (Author: Ricky Chan Ho Yin)
#
# Apache 2.0.
diff --git a/egs/hkust/s5/local/hkust_extract_subdict.pl b/egs/hkust/s5/local/hkust_extract_subdict.pl
index 5f01a94af1872f7eed642e8719b5cde14a98a673..f5683a6b34e2aca862ecd7ee9a1431e1aed51d24 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright Hong Kong University of Science and Technology (Author: Ricky Chan) 2013.
#
# A script for dictionary generation with an input dict and a wordlist
index a894504364b7e7988068e457057154db8bdf5c03..7d9f9015ed4096374535e1a8c7ffae9f1406409f 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright Chao Weng
# normalizations for hkust trascript
index 3f9ee9f49e64feebea8e5d1981dcc6aec7fb506a..dff335fc10ad814ad20b828e4c02a08bd02b730a 100755 (executable)
+#!/usr/bin/env python
#coding:utf-8
#!/usr/bin/env python
import sys
diff --git a/egs/librispeech/s5/local/lm/python/pre_filter.py b/egs/librispeech/s5/local/lm/python/pre_filter.py
old mode 100644 (file)
new mode 100755 (executable)
new mode 100755 (executable)
diff --git a/egs/librispeech/s5/local/lm/python/text_post_process.py b/egs/librispeech/s5/local/lm/python/text_post_process.py
old mode 100644 (file)
new mode 100755 (executable)
new mode 100755 (executable)
diff --git a/egs/librispeech/s5/local/lm/python/text_pre_process.py b/egs/librispeech/s5/local/lm/python/text_pre_process.py
old mode 100644 (file)
new mode 100755 (executable)
new mode 100755 (executable)
index 78bda05038d4ecb7144c92f0e211ae560dacaa70..3b45908a00038bc8458dd50aff9a9819333022de 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
my ($train_file, $test_file, $lang_file, $priors_file) = @ARGV;
open(UTT2LANG_TRAIN, "<$train_file") or die "no utt2lang training file";
index 83556b95b8e1e7662cd14caf0f1079ce9e912015..7fc61b6e83f87b00f658cfe8552e2346c3578817 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Removes the dialect parts on an utt2lang file.
# For example <utt> chinese.wu is converted to <utt> chinese.
index 69981400d396b129b894d787c6cac5f50b3489f2..407abce2e5d9c3bdb36425a4c383910f4cdef18e 100755 (executable)
-#! /usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder Daniel Povey
# Apache 2.0.
index b7b29f6560766a9f2b2f18e9342db138c0f4cf2e..b286bc7aa25c8448d8d68ca6e4b3c8e4b3e60ef4 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
#
# Copyright 2014 David Snyder Daniel Povey
index f77984c4da5f8a327abbe27360d7349e58ee2c7b..914a70cf5be0838fe9dfa8ba456fd44f8c07d078 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder
index 0881126710c9a268dc69958f6104464a49fce9e3..db29880a2f44fc6c1b4a09c3275febb6f282c151 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder
# Usage: make_lre07.pl <path-to-LDC2009S04> <output-dir>
index 9c8316138d2694a6ba08cdc22ae06ddab8282daa..0d1797145a94f01cf8c3a6bddb681cec69282cb9 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2013-2014 Daniel Povey
# 2014 David Snyder
diff --git a/egs/lre/v1/local/vad_split_utts_fix_data.pl b/egs/lre/v1/local/vad_split_utts_fix_data.pl
index 559811ab7d3e1fdf384029fdeadff38788b80577..dfede15e4889734b1a4e6fa58edea9f3bafa622d 100755 (executable)
-#! /usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder
# Apache 2.0.
diff --git a/egs/lre07/v1/lid/balance_priors_to_test.pl b/egs/lre07/v1/lid/balance_priors_to_test.pl
index 955e6059f969ddff85c75264e13e5fabda4eb3c7..2d551a335f9ef46dee9d588342e309f99c685f9b 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2014 David Snyder
# Apache 2.0.
#
index 83556b95b8e1e7662cd14caf0f1079ce9e912015..7fc61b6e83f87b00f658cfe8552e2346c3578817 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Removes the dialect parts on an utt2lang file.
# For example <utt> chinese.wu is converted to <utt> chinese.
diff --git a/egs/lre07/v1/local/lre07_eval/lre07_targets.pl b/egs/lre07/v1/local/lre07_eval/lre07_targets.pl
index 537cf9f46df1641c3f386326fd572edb2618225d..24869ed4503c31fcb79345b81065ed310f81f39a 100755 (executable)
-#! /usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder
# Apache 2.0.
diff --git a/egs/lre07/v1/local/lre07_eval/score_lre07.v01d.pl b/egs/lre07/v1/local/lre07_eval/score_lre07.v01d.pl
index 69d44ce1bc4b2e984b1b17d159a88e2e2d6c230d..108125060210cbedddc9301989ce0238dd70692e 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
##############################
# history
index 69981400d396b129b894d787c6cac5f50b3489f2..407abce2e5d9c3bdb36425a4c383910f4cdef18e 100755 (executable)
-#! /usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder Daniel Povey
# Apache 2.0.
index b7b29f6560766a9f2b2f18e9342db138c0f4cf2e..b286bc7aa25c8448d8d68ca6e4b3c8e4b3e60ef4 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
#
# Copyright 2014 David Snyder Daniel Povey
index f77984c4da5f8a327abbe27360d7349e58ee2c7b..914a70cf5be0838fe9dfa8ba456fd44f8c07d078 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder
index 0881126710c9a268dc69958f6104464a49fce9e3..db29880a2f44fc6c1b4a09c3275febb6f282c151 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder
# Usage: make_lre07.pl <path-to-LDC2009S04> <output-dir>
index ad2e562e754374c7b8718b6bd54d03f136e384eb..4de1a4fe794bca436a0ba2ea8d8daf3865bb54bd 100755 (executable)
-#! /usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder
# Apache 2.0.
index 18b85b89c69593d79bc41fb3c0f6c7fd1c3149d4..9113e08c86d770195b5f6a9ec394135851051d00 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
#
# Copyright 2014 David Snyder
index 74eec8282da68b920eb06cfb819ec90292ed8f4f..0e5dcf8f4da3e1966289fdb10287ea906206fa55 100755 (executable)
-#! /usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder Daniel Povey
# Apache 2.0.
index 9c8316138d2694a6ba08cdc22ae06ddab8282daa..0d1797145a94f01cf8c3a6bddb681cec69282cb9 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2013-2014 Daniel Povey
# 2014 David Snyder
diff --git a/egs/lre07/v1/local/vad_split_utts_fix_data.pl b/egs/lre07/v1/local/vad_split_utts_fix_data.pl
index 559811ab7d3e1fdf384029fdeadff38788b80577..dfede15e4889734b1a4e6fa58edea9f3bafa622d 100755 (executable)
-#! /usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder
# Apache 2.0.
diff --git a/egs/reverb/s5/local/convert_transcripts.pl b/egs/reverb/s5/local/convert_transcripts.pl
index c1b50e03bb3063a657dda585daec0910544d2372..dd624426754d3ae08a5cbec18ae92689791be068 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 MERL (author: Felix Weninger)
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/reverb/s5/local/find_transcripts_singledot.pl b/egs/reverb/s5/local/find_transcripts_singledot.pl
index 6c4bc4e238f4eea5ddbea3be40437dfda6a0341d..9b6da0cdb0c53d88c61380f2408e1ed177ac2bd3 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 MERL (author: Felix Weninger and Shinji Watanabe)
# Modified from original Kaldi code: find_transcripts.pl
diff --git a/egs/reverb/s5/local/find_transcripts_txt.pl b/egs/reverb/s5/local/find_transcripts_txt.pl
index 21b0956b35ef5f6b528a86201ddd8d2957efa089..04579f5908e815b8c4936a13fb217ef149b3461d 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 MERL (author: Felix Weninger)
# Modified from original Kaldi code: find_transcripts.pl
index aefe5cf6c8b3f1832441b557e21a09019218282c..93d819785404622eeb5556be1d4a21c72f9493c3 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 MERL (author: Felix Weninger)
# Licensed under the Apache License, Version 2.0 (the "License");
index 483a5d3585819f60bbcbba932b32d4076748ffd2..53daf483f95b3ecf88c878541491ff2c5832c0fb 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
index ce5ce58aa6fa2f36e4edd413cf6bc334935fceeb..0977bd2dacc1e7dad29675d8add11f6ac6e31dbf 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 MERL (author: Felix Weninger)
index 12d0a3363a8495fd58434d4ad605188e1b4fbfc0..8aee98e74816963ab348d24f856a37269c0cc554 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Yanmin Qian Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index c5af12d758e459914c37ae4f9d109043d4755566..053fb294329113d0605f73cba85aefb17ad4ff09 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Yanmin Qian Microsoft Corporation
index 1a436ec064a6c5f42fe5d64ef08415a87569805c..263496526ba93e7b1c4317fb2c314ea077c16677 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey)
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/sprakbanken/s5/local/cstr_ndx2flist.pl b/egs/sprakbanken/s5/local/cstr_ndx2flist.pl
index 101834e86edc9e752547184aa3a68dc4542efa94..d19db421a9fbedfe7bf27c5ada4e37bc04d1e163 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
index 5714b7d9a695e72064ff03f51c89b548640bd30a..58a0898dc26f75ec13095d00f8d83f7867fabb4f 100755 (executable)
+#!/usr/bin/env python
'''
# Copyright 2013-2014 Mirsk Digital Aps (Author: Andreas Kirkedal)
diff --git a/egs/sprakbanken/s5/local/dict/add_counts.pl b/egs/sprakbanken/s5/local/dict/add_counts.pl
index 409277c7235400208c61f8aebd9a5532d64b9c55..a2ace7e9af2c90fa2c2cf196033211a32911f003 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Add counts to an oovlist.
diff --git a/egs/sprakbanken/s5/local/dict/count_rules.pl b/egs/sprakbanken/s5/local/dict/count_rules.pl
index 2805e98c3e137e6ff226dc9ef12061effad9b2dc..1c6cfc4a54787914396d6195989440bde73449ca 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes the output of score_prons.pl and collates
# it for each (rule, destress) pair so that we get the
diff --git a/egs/sprakbanken/s5/local/dict/filter_dict.pl b/egs/sprakbanken/s5/local/dict/filter_dict.pl
index 1210bb5e65e19694bf3af01594ba6c5564bc0b18..5e32823ef924f5b2a3dcf1b6ee69d3f73b901b5a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program reads and writes either a dictionary or just a list
diff --git a/egs/sprakbanken/s5/local/dict/find_acronyms.pl b/egs/sprakbanken/s5/local/dict/find_acronyms.pl
index ed4655afa4a36d31c590e67cefa2b6a33c5f0f4f..55e474c40566b7113529c06c0b3d7ac827702af8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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
diff --git a/egs/sprakbanken/s5/local/dict/get_acronym_prons.pl b/egs/sprakbanken/s5/local/dict/get_acronym_prons.pl
index 3f9936818ff34aaa9386193b3b7bce2c611d8d82..6294b7046e2f8dbbb1f1d8e250233c4f88b6bd1e 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Reads a dictionary (for prons of letters), and an OOV list,
# and puts out candidate pronunciations of words in that list
diff --git a/egs/sprakbanken/s5/local/dict/get_candidate_prons.pl b/egs/sprakbanken/s5/local/dict/get_candidate_prons.pl
index b13efd2039093f3f2de31dfd5037d1acf56373a4..b091c6d767e03b5705814bcb5c3c08d30e2c4abe 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This script takes three command-line arguments (typically files, or "-"):
# the suffix rules (as output by get_rules.pl), the rule-hierarchy
diff --git a/egs/sprakbanken/s5/local/dict/get_rule_hierarchy.pl b/egs/sprakbanken/s5/local/dict/get_rule_hierarchy.pl
index 35805b46b897f1d1008e3e3801f4354ef1f34dc4..d7c13a8df57b6991b1abb7aee7d403b6c7db9508 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#This reads in rules, of the form put out by get_rules.pl, e.g.:
# ERT,,ER0 T,
diff --git a/egs/sprakbanken/s5/local/dict/get_rules.pl b/egs/sprakbanken/s5/local/dict/get_rules.pl
index a5b57b08872de328026f7f56870d815a67f5fbcb..b10eccc9171687df31b65cbc827bac55c5a1b17b 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program creates suggested suffix rules from a dictionary.
# It outputs quadruples of the form:
diff --git a/egs/sprakbanken/s5/local/dict/limit_candidate_prons.pl b/egs/sprakbanken/s5/local/dict/limit_candidate_prons.pl
index ceff9fbadfc9c18177e3825c0edd8bc7492daec1..b01218f6e966c027afe18da57490059b4f0a8cd3 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program enforces the rule that
# if a "more specific" rule applies, we cannot use the more general rule.
diff --git a/egs/sprakbanken/s5/local/dict/reverse_candidates.pl b/egs/sprakbanken/s5/local/dict/reverse_candidates.pl
index d5c5effc226000dc70b61082519df1802c52072d..5b7aabd8abdff14ed6a43f30077d1284e7b8f440 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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:
diff --git a/egs/sprakbanken/s5/local/dict/reverse_dict.pl b/egs/sprakbanken/s5/local/dict/reverse_dict.pl
index 75681711bbdc39711e0711787ba05a94c424f367..2cd38c54b6a29e648671af4bae63a86b28d91723 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Used in conjunction with get_rules.pl
# example input line: XANTHE Z AE1 N DH
diff --git a/egs/sprakbanken/s5/local/dict/score_prons.pl b/egs/sprakbanken/s5/local/dict/score_prons.pl
index fd5a004d812066bc5a463c01891bb0e87bdf33b4..6aa72e4215859a37042566ca2cd1b971ff1cea9c 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes candidate prons from "get_candidate_prons.pl" or
# "limit_candidate_prons.pl", and a reference dictionary covering those words,
diff --git a/egs/sprakbanken/s5/local/dict/score_rules.pl b/egs/sprakbanken/s5/local/dict/score_rules.pl
index 8d165f7f1f63d4e901e06fad0bdb754ba5dab448..252d94677d527cdcf5f90e1fc22a434f0c4011ae 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes the output of count_rules.pl, which is tuples
# of the form
diff --git a/egs/sprakbanken/s5/local/dict/select_candidate_prons.pl b/egs/sprakbanken/s5/local/dict/select_candidate_prons.pl
index d0018c98af4a6e73ab120e4ae8398c6b8aa390da..a24ccdd4de896a1f0e25808a5af42653e6292590 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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:
diff --git a/egs/sprakbanken/s5/local/find_transcripts.pl b/egs/sprakbanken/s5/local/find_transcripts.pl
index 0e5d71f791dbc8a90c5f57f5be16fc81e3dfd0b2..6429411b86429f8eb9e82ba8ccc210473adbdac7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 6831d2d7b4a3cfb8d779dd93c106ac72578618f7..234e4add1edd557ad42b39d76be92d24dea18f13 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/sprakbanken/s5/local/normalize_transcript.py b/egs/sprakbanken/s5/local/normalize_transcript.py
index 43c2628ea6cb9396d2c2a5323f80d0e32405925f..f759a39731d566f2fd5f4ee1b384d924524502f2 100755 (executable)
+#!/usr/bin/env python
import codecs
import sys
import re
diff --git a/egs/sprakbanken/s5/local/normalize_transcript_prefixed.py b/egs/sprakbanken/s5/local/normalize_transcript_prefixed.py
index bbdbadde6c10b864bc418939fcf731db26745e9b..e934533a393360f2ed4008818a563cc6cbbfbfa4 100755 (executable)
+#!/usr/bin/env python
'''
# Copyright 2013-2014 Mirsk Digital Aps (Author: Andreas Kirkedal)
diff --git a/egs/sprakbanken/s5/local/parallel2kaldi.py b/egs/sprakbanken/s5/local/parallel2kaldi.py
+#!/usr/bin/env python
'''
This script assumes that the parallel files have the same filename with different extensions and you must
specify the absolute path to the corpus from the root. The text files may only contain a single line of text.
index b769fc4cc8946e473d0d61f9c3ef29753d41de8a..f3abf1d9a3808de2b5f06fc3a03438f33a1b23cc 100755 (executable)
+#!/usr/bin/env python
'''
# Copyright 2013-2014 Mirsk Digital Aps (Author: Andreas Kirkedal)
diff --git a/egs/sprakbanken/s5/local/sprak2parallel.py b/egs/sprakbanken/s5/local/sprak2parallel.py
index 8bc2f0541789a5b66ce0c3f13b5b67f93e1c34eb..b5fe56fd60f144fb5198565d234e0ab0d1800aa8 100755 (executable)
+#!/usr/bin/env python
'''
# Copyright 2013-2014 Mirsk Digital ApS (Author: Andreas Kirkedal)
index 7d1826af9a0bb56c12953b96e19ea8f12d3cc036..7bdf6ac94e3d214c3eebba60d10f1650ddec45cb 100755 (executable)
+#!/usr/bin/env python
'''
# Copyright 2013-2014 Mirsk Digital ApS (Author: Andreas Kirkedal)
+#!/usr/bin/env python
'''
# Copyright 2014 Author: Andreas Kirkedal
index 65ed72cc5f7ae4266d2fdd1730ac69f250d3f510..6de7c72ae48c31214bfb693a6bccfa9cee75ff1f 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use File::Basename;
index 4c4ab1b1aec489fd65704a0324dbfca6c7a9f1ec..cfb2d7c96693bace675e437eea10b062147faabc 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder
# Apache 2.0.
index a6c826bfd46e33841bb6e577a44a62b507614c7f..1683bc38f3f7d67c4ee9d8e18a5855333763999d 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2013 Daniel Povey
# Apache 2.0.
index eb11cd5cc2e37b79160c16b0e0db899eb5e21437..557b0a9318f5c8a5c5acf0b8a1eb275415bdc1a8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2014 David Snyder
# Apache 2.0.
index 59a6ddf65b713eec924d5f5800fd8b8745303109..03b4badd89953d82b59e8aade4fde768f031000d 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2013 Daniel Povey
# Apache 2.0.
index fbdaa3f22edbdcf62557066453abad7f3bd60477..9e4950ba53814478aab732c1ed657003e7d0a77d 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2013 Daniel Povey
# Apache 2.0.
index cf84a6212eae1f2e7d2ee73db9f834949981b601..4d833bd04df57be770c7e178234c8cfc8d79ccba 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2013 Daniel Povey
# Apache 2.0.
index 85a2df60551f94deddc5cc9e3c0c7ce3442ba9d7..e0cf3c837e136017eb056f2e7773b3b87d4e662b 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2013 Daniel Povey
# Apache 2.0
index 829c232927aa2f732997002d95b1650b525285c1..d6210e5a7b5f4d4f2f9fbec0aea20606bd6a051e 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2013 Daniel Povey
# Apache 2.0
index 57e3f53d40cf122a85b7e5389ec6bd97d3980312..da4b9344418d1d06fbf2c0dcf0072d33f79263a4 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2013 Daniel Povey
# Apache 2.0
index acd8555a58d7e887ade8f8ac0e16f9e43b2f61b1..3bfcfede1d907936ec0b904f42e7203e206823d0 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#
# Copyright 2013 Daniel Povey
# Apache 2.0
index edd6c0296ab69542c22599da07ac4240d2b95d84..cf078830b444a2500d60cc9c2c1194f434a54de4 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2013 Arnab Ghoshal
index 0f2472a7685039474368698c154a8968313db3b5..39f90d72816f02cdbc7b3fd4020fefdcc4dd5234 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Modified from swbd_map_words.pl in Kaldi s5 recipe to make pattern
# matches case-insensitive --Arnab (Jan 2013)
index 867efefd78adc1ee605988385a871e6e533811b4..eac996c1d93e5f49e3c373cf6e6cc284cdd6f9c3 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
if ($ARGV[0] eq "-f") {
index 0dfad040a9894488465a8e5779310a770a1d39ee..00a1c6c5204b003a720d8d5b87dd2a8a857bff38 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
if (@ARGV != 1 || !($ARGV[0] =~ m/^-?\d+\.?\d*$/ && $ARGV[0] >= 0)) {
print STDERR "Usage: extend_segments.pl time-in-seconds <segments >segments.extended \n" .
index edd6c0296ab69542c22599da07ac4240d2b95d84..cf078830b444a2500d60cc9c2c1194f434a54de4 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2013 Arnab Ghoshal
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Author: Peng Qi (pengqi@cs.stanford.edu)
# This script maps Switchboard speaker IDs to the true physical speakers
index 0f2472a7685039474368698c154a8968313db3b5..39f90d72816f02cdbc7b3fd4020fefdcc4dd5234 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Modified from swbd_map_words.pl in Kaldi s5 recipe to make pattern
# matches case-insensitive --Arnab (Jan 2013)
index 0dfad040a9894488465a8e5779310a770a1d39ee..00a1c6c5204b003a720d8d5b87dd2a8a857bff38 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
if (@ARGV != 1 || !($ARGV[0] =~ m/^-?\d+\.?\d*$/ && $ARGV[0] >= 0)) {
print STDERR "Usage: extend_segments.pl time-in-seconds <segments >segments.extended \n" .
index 0b23a55a4c5abf5477d48660bd9e26e879ea8588..e971871502de96d733289f544f0514de2ec1658a 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2013 Arnab Ghoshal
diff --git a/egs/swbd/s5c/local/format_acronyms_dict.py b/egs/swbd/s5c/local/format_acronyms_dict.py
index 5af49e31131de8b88f77b8ec2c8dff476ce8980e..16a03a60e1f5f533f9a5130cb8226815a8c1174e 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# convert acronyms in swbd dict to fisher convention
# IBM to i._b._m.
# BBC to b._b._c.
index 08d9ae6057d701a86891a7dc1e39fd35e87fd286..c7f002cb2c708dc6e422ec9321285ef83541818f 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# convert acronyms in swbd decode result
# e.g. convert things like en_4156 B 414.26 0.65 u._c._l._a. to
# en_4156 B 414.26 0.16 u
diff --git a/egs/swbd/s5c/local/map_acronyms_transcripts.py b/egs/swbd/s5c/local/map_acronyms_transcripts.py
index 7490148476df38c61fdc924a1545abd5fea26112..0366124540849e3d7ad089dc98504bca9f717e27 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# convert acronyms in swbd transcript to fisher convention
# accoring to first two columns in the input acronyms mapping
index ded0de4ea6f8aefaffcb94a67bfcfc5329f3fc51..72eefcbf3060c19baf2edc9c71615cd9e03a9d0c 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Author: Peng Qi (pengqi@cs.stanford.edu)
# This script maps Switchboard speaker IDs to the true physical speakers
index 0f2472a7685039474368698c154a8968313db3b5..39f90d72816f02cdbc7b3fd4020fefdcc4dd5234 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Modified from swbd_map_words.pl in Kaldi s5 recipe to make pattern
# matches case-insensitive --Arnab (Jan 2013)
index 6ab803d564402d48b7ab2c082ce33b45b0a220f9..25b097ed0e4cebc945998526bf8be13a234d0d18 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
#
# Copyright 2014 Nickolay V. Shmyrev
# Apache 2.0
index 45901a3a288090d5facc6c35842875ed999446ff..fe90ba68a06c3c84c9a7d30d679062daf618b3c0 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# A very small modification on ../../../tools/kaldi_lm/get_word_map.pl to account
# for no OOV vocab terms in timit. - Navdeep Jaitly.
index f9e71ad15b35f9f552aabd9663723098426dcd43..230b4fab2bf2f29542f19e6e372490c8928f0dfa 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Navdeep Jaitly.
# Copyright 2010-2011 Microsoft Corporation
index a37af62b3ed9249d91354359ecaccb5b89ea1a40..9036b484e293849edffb5f5962889149569d4a96 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 122ca6572c29c604f7a7c29c0c473487ce247a8e..86d96848c97bad106fd15bd28aca554b680c51b1 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 6233c27e19e73854b1a5f1d28ce796fd98452658..f2126a48882a270d856be8b809c8eb2dbae027b6 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict ;
my $ignore_first_field = 0;
index fecbdc83368fc99a0211698e69b27b4190187d62..049802b08884c7779948ad19c2bf05768cbe7c09 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index ac40838b77d57e26924d1073c1b69d505685b1e3..02552b22a5aa9ec781a9fc8ab65b1ab911e51a4c 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index d08c4279e4be15c22d80295a133487ca58c9a24a..ad85ef349931fba5401b3e8b11530cf8b3b1fdd7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 6903ac3ce79c80551279c0fdab36a02983bea409..ada17f64e116d0eb77bc99dca305e4ade8760503 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/timit/s3/scripts/make_phones_symtab.pl b/egs/timit/s3/scripts/make_phones_symtab.pl
index d9fcf0215a2f13c7b73a5ec3d1de0aa5e7cbf781..03b8cbe7af33b701ee1e2a85afbeabdd9ad4a65a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 12d0a3363a8495fd58434d4ad605188e1b4fbfc0..8aee98e74816963ab348d24f856a37269c0cc554 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Yanmin Qian Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index c5af12d758e459914c37ae4f9d109043d4755566..053fb294329113d0605f73cba85aefb17ad4ff09 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Yanmin Qian Microsoft Corporation
index eeed0e6e312144aa4bf64c3943ea7bfedc05ee78..07c224379b6268a43feb838ba6bef108fe8af323 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index b6aa4377c1937b057e24e2523c1ce3e9af443ac1..509078898fcfe9c3588f12f2bb08ce146248d33a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 5bcab59840ceee2302816481a2a34e11c82eeaf0..532d7f295eae8f6c85766b7b1eea72c8f8cd840c 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index de993db67f7f4c2c673fa681af1d150df9db7fb0..ffeeb8eb6af3c4f319f31ebff80be388d8f59e1a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 8cee6df94a55477495b780704a25e1af1cd20e31..3ff85dfe3bbe02b9e0329505c957ea527de67af3 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/timit/s3/scripts/spk2utt_to_utt2spk.pl b/egs/timit/s3/scripts/spk2utt_to_utt2spk.pl
index ca8a6a1249c5cfdee90cef745d6c1cc75da5e075..23992f25dea7b5a9812f1ffe81646c5b81ee04ef 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index f30d217a67b5f92ad299a38c80001d4d241715dc..2808d4ff11f007b8f138120d9ff03326f8ea500d 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 4f8b218a75ba3968e23fbfc8af5799279fa907f6..ee22d3f13bdbc7e73981c844d488c3ae9cf4a871 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/timit/s3/scripts/utt2spk_to_spk2utt.pl b/egs/timit/s3/scripts/utt2spk_to_spk2utt.pl
index c94eb8d530195d7b25bb8c61bd7571ac2692b0f2..f5e61459bc94e7e8ffe35e77b6720cfcbd191bfa 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/timit/s4/local/timit_make_questions.pl b/egs/timit/s4/local/timit_make_questions.pl
index e070c8600e2ecd1b7c89ee405bfed2d0b2bc7aed..3c31362d3a143e9266d27907144eecc3ca2095b3 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index 11fa78d9f4488324c56f184f515feafe3a0258c1..f8c7bf39d740750241e0c38cf9bb264a7ef78261 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
index c605659e105c40a7806038161034e06dae68ce06..962ef386763beca10c009efb53b0faac24e90fd1 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 9f9054e1795ab693bea1097eb5dccac905c870cb..ded04bb4b4930898b50d517ad35be1a45957e75d 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index fecbdc83368fc99a0211698e69b27b4190187d62..049802b08884c7779948ad19c2bf05768cbe7c09 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index dfe4b13d14df6a570fdf57e190a45bbde82e598e..748c94cade002a643fbedce45f11397983677077 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index d08c4279e4be15c22d80295a133487ca58c9a24a..ad85ef349931fba5401b3e8b11530cf8b3b1fdd7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 1e9c291b4cd17b50722d283ae18e97a7ca932c74..9e088889cc2b8f4b13dcae7d77c8457c70463367 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index de993db67f7f4c2c673fa681af1d150df9db7fb0..ffeeb8eb6af3c4f319f31ebff80be388d8f59e1a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 8cee6df94a55477495b780704a25e1af1cd20e31..3ff85dfe3bbe02b9e0329505c957ea527de67af3 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 1521504f261205b6aed5da74f6dfb53d345fae18..164aa22bad6df020f97a076ccd60bfaf382acbaf 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 54a9ff21f365665e354b4531144073138a1cb9f8..71492652c50ce8c2081ada9ae3a53b08c58dbb29 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 0c9e6417c826f15673fd693d36f950830f3456ce..0dfb7ba5fd3cf84a961f050eeeeaf43f3a103a78 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 0b6d0d6d2912eafd6ef416b4d4107c74efd24ec6..ad623d2de7cba110b6583c6c433d3ac24b407698 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Arnab Ghoshal
+#!/usr/bin/env python
from __future__ import unicode_literals
diff --git a/egs/vystadial_cz/s5/local/make_baseform.pl b/egs/vystadial_cz/s5/local/make_baseform.pl
-#!perl -w
+#!/usr/bin/env perl -w
#
# ====================================================================
diff --git a/egs/vystadial_cz/s5/local/phonetic_transcription_cs.pl b/egs/vystadial_cz/s5/local/phonetic_transcription_cs.pl
-#!/usr/bin/perl
+#!/usr/bin/env perl
use strict;
use warnings;
diff --git a/egs/vystadial_en/s5/local/make_baseform.pl b/egs/vystadial_en/s5/local/make_baseform.pl
-#!perl -w
+#!/usr/bin/env perl -w
#
# ====================================================================
index 101834e86edc9e752547184aa3a68dc4542efa94..d19db421a9fbedfe7bf27c5ada4e37bc04d1e163 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
index 409277c7235400208c61f8aebd9a5532d64b9c55..a2ace7e9af2c90fa2c2cf196033211a32911f003 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Add counts to an oovlist.
index 2805e98c3e137e6ff226dc9ef12061effad9b2dc..1c6cfc4a54787914396d6195989440bde73449ca 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes the output of score_prons.pl and collates
# it for each (rule, destress) pair so that we get the
index 1210bb5e65e19694bf3af01594ba6c5564bc0b18..5e32823ef924f5b2a3dcf1b6ee69d3f73b901b5a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program reads and writes either a dictionary or just a list
index ed4655afa4a36d31c590e67cefa2b6a33c5f0f4f..55e474c40566b7113529c06c0b3d7ac827702af8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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
diff --git a/egs/wsj/s5/local/dict/get_acronym_prons.pl b/egs/wsj/s5/local/dict/get_acronym_prons.pl
index 3f9936818ff34aaa9386193b3b7bce2c611d8d82..6294b7046e2f8dbbb1f1d8e250233c4f88b6bd1e 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Reads a dictionary (for prons of letters), and an OOV list,
# and puts out candidate pronunciations of words in that list
diff --git a/egs/wsj/s5/local/dict/get_candidate_prons.pl b/egs/wsj/s5/local/dict/get_candidate_prons.pl
index b13efd2039093f3f2de31dfd5037d1acf56373a4..b091c6d767e03b5705814bcb5c3c08d30e2c4abe 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This script takes three command-line arguments (typically files, or "-"):
# the suffix rules (as output by get_rules.pl), the rule-hierarchy
diff --git a/egs/wsj/s5/local/dict/get_rule_hierarchy.pl b/egs/wsj/s5/local/dict/get_rule_hierarchy.pl
index 35805b46b897f1d1008e3e3801f4354ef1f34dc4..d7c13a8df57b6991b1abb7aee7d403b6c7db9508 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
#This reads in rules, of the form put out by get_rules.pl, e.g.:
# ERT,,ER0 T,
index a5b57b08872de328026f7f56870d815a67f5fbcb..b10eccc9171687df31b65cbc827bac55c5a1b17b 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program creates suggested suffix rules from a dictionary.
# It outputs quadruples of the form:
diff --git a/egs/wsj/s5/local/dict/limit_candidate_prons.pl b/egs/wsj/s5/local/dict/limit_candidate_prons.pl
index ceff9fbadfc9c18177e3825c0edd8bc7492daec1..b01218f6e966c027afe18da57490059b4f0a8cd3 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program enforces the rule that
# if a "more specific" rule applies, we cannot use the more general rule.
diff --git a/egs/wsj/s5/local/dict/reverse_candidates.pl b/egs/wsj/s5/local/dict/reverse_candidates.pl
index d5c5effc226000dc70b61082519df1802c52072d..5b7aabd8abdff14ed6a43f30077d1284e7b8f440 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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:
index 75681711bbdc39711e0711787ba05a94c424f367..2cd38c54b6a29e648671af4bae63a86b28d91723 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Used in conjunction with get_rules.pl
# example input line: XANTHE Z AE1 N DH
index fd5a004d812066bc5a463c01891bb0e87bdf33b4..6aa72e4215859a37042566ca2cd1b971ff1cea9c 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes candidate prons from "get_candidate_prons.pl" or
# "limit_candidate_prons.pl", and a reference dictionary covering those words,
index 8d165f7f1f63d4e901e06fad0bdb754ba5dab448..252d94677d527cdcf5f90e1fc22a434f0c4011ae 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# This program takes the output of count_rules.pl, which is tuples
# of the form
diff --git a/egs/wsj/s5/local/dict/select_candidate_prons.pl b/egs/wsj/s5/local/dict/select_candidate_prons.pl
index d0018c98af4a6e73ab120e4ae8398c6b8aa390da..a24ccdd4de896a1f0e25808a5af42653e6292590 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# 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:
index 0e5d71f791dbc8a90c5f57f5be16fc81e3dfd0b2..6429411b86429f8eb9e82ba8ccc210473adbdac7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 6831d2d7b4a3cfb8d779dd93c106ac72578618f7..234e4add1edd557ad42b39d76be92d24dea18f13 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index b0570429341753e91d80ba9f5d44d15405149271..48fc3dec101dc5bc33e019601c411fb0571cc0c8 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 9dd67af3dd9ae20bff5e7caea51b079df3574633..09cee06172ec63bb2de123f19bc0ac9efd997095 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/wsj/s5/steps/cleanup/create_segments_from_ctm.pl b/egs/wsj/s5/steps/cleanup/create_segments_from_ctm.pl
index 7719619292a8eff5f19279cee4505c06c556d3e9..98c4e56d578b7ef476febf3f2a8d502b9abe8a6b 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2014 Guoguo Chen
# Apache 2.0
diff --git a/egs/wsj/s5/steps/cleanup/make_utterance_fsts.pl b/egs/wsj/s5/steps/cleanup/make_utterance_fsts.pl
index 0929291bc0b161104a992d544b98cab5415ad1e3..009bdf3c0428ca315d1dc339cca679213c3ec63a 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# makes unigram decoding-graph FSTs specific to each utterances, where the
# supplied top-n-words list together with the supervision text of the utterance are
diff --git a/egs/wsj/s5/steps/nnet2/make_multisplice_configs.py b/egs/wsj/s5/steps/nnet2/make_multisplice_configs.py
+#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Daniel Povey and Vijayaditya Peddinti). Apache 2.0.
# Creates the nnet.config and hidde_*.config scripts used in train_pnorm_multisplice.sh
index 0a6ff7a460ecdab2e491ebffe4a81ed6817a27b3..c03fbf4b1189260b40491933ff24f6b3bad8e4b6 100755 (executable)
shared_phones_opt="--shared-phones=$lang/phones/sets.int"
if [ $stage -le -3 ]; then
-# Note: JOB=1 just uses the 1st part of the features-- we only need a subset anyway.
- feat_dim=`feat-to-dim "$example_feats" - 2>/dev/null`
- [ -z "$feat_dim" ] && echo "error getting feature dimension" && exit 1;
+ # Note: JOB=1 just uses the 1st part of the features-- we only need a subset anyway.
+ if ! feat_dim=`feat-to-dim "$example_feats" - 2>/dev/null` || [ -z $feat_dim ]; then
+ feat-to-dim "$example_feats"
+ echo "error getting feature dimension"
+ exit 1;
+ fi
$cmd JOB=1 $dir/log/init.log \
gmm-init-mono $shared_phones_opt "--train-feats=$feats subset-feats --n=10 ark:- ark:-|" $lang/topo $feat_dim \
$dir/0.mdl $dir/tree || exit 1;
index c605659e105c40a7806038161034e06dae68ce06..962ef386763beca10c009efb53b0faac24e90fd1 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index aa2c0a11d71ef4ed0d571d0608aa8e66e6f09776..6ec168ed38e4739cb5c36fbb61407e10475c6e30 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# 2013 Johns Hopkins University (author: Daniel Povey)
# 2015 Hainan Xu
index 41556369c3e00375227d9231a8372895a8fc6d9e..2aa01157bbf6a6da2f6e6520eac1242e96abf57d 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey)
# Apache 2.0.
index c8efa2567e883b0253fd3cefd123c6c6979baaf9..7daec8e52c47a806944afcaa5f0a357cd4df4e1c 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0.
index 251a3667bf7599ab73a239267b2c6b05b8a0e2a6..ee1941011e5251ad35f8b3f53384417e55a9914d 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2014 Brno University of Technology (author Karel Vesely)
# Copyright 2013 Korbinian Riedhammer
index 8eb541c1e8fcb95eb11208a5a5b07c40ec8d276f..0fafa2e041bae1def3058ca382ab3cae06cc7e48 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 Guoguo Chen
# 2014 Johns Hopkins University (author: Daniel Povey)
index a03900c61c9ae3389092269394950f996aa5e572..0c4f023f7f3cac55304c632b0165086d2efa817b 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 Guoguo Chen
# Apache 2.0.
index fecbdc83368fc99a0211698e69b27b4190187d62..049802b08884c7779948ad19c2bf05768cbe7c09 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 59b2df695c083b43d78a80dedca3335d939490c8..b76d37f41be0886470281978bfacf97f6b8ae976 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2012 Microsoft Corporation
# Johns Hopkins University (author: Daniel Povey)
index f0ce8c38229941dcf4aff79fe51a8fca91f797ad..36c96a7a872f4c28b14796c140944796859da705 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2012 Microsoft Corporation
# Johns Hopkins University (author: Daniel Povey)
# 2015 Xiaohui Zhang
index abd63f65e7a57d9d58226ab94481a6850c828a00..14d898f663072c7a76b018c9228755e6018b2d97 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 58721ced1aff15e83c4e5a9b1090fa072e63d758..2ed331132609a8fb8eeb2cee07e16515da2c2add 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (author: Daniel Povey)
index 13cc5ae9b1d8238eb43bbad62fc7ce5bf79e12fa..d6189394a5f9785d908cf7a46a675f48a8492b23 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey)
# Apache 2.0.
index 5b1cbc9709558708e451a5c0771f4cacc92f6c9f..8f8fcf33b8491da97c3c457015c90c1f4ba20d2a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
diff --git a/egs/wsj/s5/utils/ln.pl b/egs/wsj/s5/utils/ln.pl
index 594d3924ec8c2511fa9e93336b2aab80f327da3b..634b4391d76bd51558f8e2ba3af60e5be6e69efb 100755 (executable)
--- a/egs/wsj/s5/utils/ln.pl
+++ b/egs/wsj/s5/utils/ln.pl
-#!/usr/bin/perl
+#!/usr/bin/env perl
use File::Spec;
if ( @ARGV < 2 ) {
index c8cd15cbefd8e9a1ea39c25548cabf08595e961b..f86255ba26e21549b12114a3caa538d1acd508ea 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2010-2011 Microsoft Corporation
# 2013 Johns Hopkins University (author: Daniel Povey)
diff --git a/egs/wsj/s5/utils/make_lexicon_fst_silprob.pl b/egs/wsj/s5/utils/make_lexicon_fst_silprob.pl
index 2fafd40977fb43ba3e935290cef43b1127075600..1a618cf9c02bd18f99848649e2395c383e9fc515 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2010-2011 Microsoft Corporation
# 2013 Johns Hopkins University (author: Daniel Povey)
# 2015 Hainan Xu
index 314a66a10cff6259e611040f59eb4b1dc09942f0..6ca740f0ae1166d4e3f3cbfa6379e1fcf5479dc7 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey)
# Licensed under the Apache License, Version 2.0 (the "License");
index 085a7049b19e74d735d0d50a7f82b87945f3abd9..25b4781ca1a2e2e1034f3a67c75a12ea2a10b195 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2014 Guoguo Chen
# 2014 Johns Hopkins University (author: Daniel Povey)
diff --git a/egs/wsj/s5/utils/nnet-cpu/make_nnet_config.pl b/egs/wsj/s5/utils/nnet-cpu/make_nnet_config.pl
index 1e18bb642618443b2108a6bc2cc19f32ab7214bc..8ebfdc3aea143f85b245ef07d5f4465cf6a992fe 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey)
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/wsj/s5/utils/nnet-cpu/make_nnet_config_block.pl b/egs/wsj/s5/utils/nnet-cpu/make_nnet_config_block.pl
index 38851777d393733b72cd1e1295c58d2f3df5bc71..84b7cef023f219648cdc26bcf37bbf6185aeb49a 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey)
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/wsj/s5/utils/nnet-cpu/make_nnet_config_preconditioned.pl b/egs/wsj/s5/utils/nnet-cpu/make_nnet_config_preconditioned.pl
index 78833bf6665dd65e92e02ea847fff084d61502c9..2e086d4adf1faa95de6ce749e87c21aaea213c32 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey)
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/egs/wsj/s5/utils/nnet-cpu/update_learning_rates.pl b/egs/wsj/s5/utils/nnet-cpu/update_learning_rates.pl
index 36ef26ee5708bdc503ae11b671a78864fcc402ce..a2508321a151d453145380e9ba8f8f637210fcd3 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey)
# Licensed under the Apache License, Version 2.0 (the "License");
index 60e3bbac63aaf45e4f532f85be3c99ca9cb58db4..d0f043ad7a4a6d761163d18783a4ce88da1d496b 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright 2012 Brno University of Technology (author: Karel Vesely)
index 436bbaad9f0b271bb47cb98523f774e745dd0a15..a4262a8cffd257ba891a6de63f9300447d86bc56 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright 2012 Brno University of Technology (author: Karel Vesely)
index a8dddea74885ea3807d73e85336f218fea0ded5a..0241aeed6babc1ef1b00be56a46acf41d043b513 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright 2012 Brno University of Technology (author: Karel Vesely)
index 0f25c3c9db6f032fb482d0a74c104db646fd302c..35c16e29333043d4cae8facb288afdb6fc673bf9 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright 2014 Brno University of Technology (author: Katerina Zmolikova, Karel Vesely)
index 063d9ad9e64297536aaa146dd804b1e14348fd3b..9b001d5bafac229987c7cffe50cd41bd0fe7a334 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright 2015 Brno University of Technology (author: Karel Vesely)
index dd705d73efc758270f23c54587d98f3c967ab2b7..cf5ae0895361c8aee7ad5e6c2303fc42f57caa53 100755 (executable)
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright 2014 Brno University of Technology (author: Karel Vesely)
index 0b4909b273ccc3cfc277399465d74604225e1873..312ef05396221be220720bd45218bb5268ace862 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
$num_args = $#ARGV + 1;
if ($num_args != 1) {
index 5bcab59840ceee2302816481a2a34e11c82eeaf0..532d7f295eae8f6c85766b7b1eea72c8f8cd840c 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index ff6ea12a58b29aaa628539c4b2f7b6a3b354a705..5437aec434106f1519f01ea183efe702db5d8a10 100755 (executable)
+#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2012 Mirko Hannemann BUT, mirko.hannemann@gmail.com
index 03fd44850ab99f466470baea59053936df90ed53..0b8c9a4279c5f01f0f5dca88b1ea6891148ce280 100755 (executable)
--- a/egs/wsj/s5/utils/run.pl
+++ b/egs/wsj/s5/utils/run.pl
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# In general, doing
# run.pl some.log a b c is like running the command a b c in
index de993db67f7f4c2c673fa681af1d150df9db7fb0..ffeeb8eb6af3c4f319f31ebff80be388d8f59e1a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index c552bfcbca41d14b9ad5071022de3348a8ed9e0e..91ed2fbca8d094f263499c9db60cb7536e41421c 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2013 Johns Hopkins University (Author: Daniel Povey)
# Apache 2.0.
index 91c73ae8003f3a3270646f74982c3f490150dc1f..f8090ef1be9bd63013a7b44d0beeac780a3ba109 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2013 Johns Hopkins University (author: Daniel Povey)
index ca8a6a1249c5cfdee90cef745d6c1cc75da5e075..23992f25dea7b5a9812f1ffe81646c5b81ee04ef 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 2fbbabc4af97292c77487281cee815ebd3d26a8f..ee38e87b4e8e4a26b89ab4fd5515f5f9fa4dcdc3 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 3e100ba056ba9d9982b921bf79ef89f0acbf8e6e..521c36218956f900e7711358f9d35b6642a96eea 100755 (executable)
--- a/egs/wsj/s5/utils/ssh.pl
+++ b/egs/wsj/s5/utils/ssh.pl
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
use Cwd;
use File::Basename;
index 8a3b1cf5d91dd89fba14926d028ffd3287d0c9ba..4b688192e2a241247c4718d404d9f3f8d60642d3 100755 (executable)
-#!/usr/bin/perl -w
+#!/usr/bin/env perl -w
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index 8b1cea11743a7577fdeac9ba63d8a982a18d7021..63521d8d1a31ddf1d943380c07c2c8af14a9db19 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0.
index ccbeb4186b929072573ac272df4dce50532ecee3..c094a1dc2391c5070bab0308a2e0f1242e504ac6 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0.
index be0a577cfa378b58da6eaa7b55b573a699c517c0..592145c59f121d1883a9ca614709dc329da14714 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2012 Microsoft Corporation Johns Hopkins University (Author: Daniel Povey)
# Licensed under the Apache License, Version 2.0 (the "License");
index 2c375ab4dbac667c91fc9edaa565efdf22bdadd2..6e0e438ca6d7e143bbc572a6065f382047503915 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
index b6a7aebaea85e1247f2bfaaa5c50e9c0555841d1..ca33f84c8c4b3ccc0f5cedf9caec7803db6d09eb 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Apache 2.0.
# Guoguo Chen (guoguo@jhu.edu)
index 258c55c63b6947e57be4decaa89e0e600c9a77c1..0d00379f82ca2469889035ff411cea90d0db8392 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Apache 2.0.
# Copyright 2012 Guoguo Chen
index f86f975c578ad3d4031fa7eba2fea1a7751b7eb2..b2f67815df9a96cce11b64b954edf12ac28c7494 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0.
index fe9b644d95f7372c8a3c2973f552a04396f74b80..50df35515201a8e3ddd7be848e8a779b5371d87a 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
$in_list = $ARGV[0];
diff --git a/egs/yesno/s5/local/create_yesno_wav_scp.pl b/egs/yesno/s5/local/create_yesno_wav_scp.pl
index 13d54dbc2fe6dd29db54bb29cce984f97918a238..7086f410737b200ba9defca319e2d2221a9bd8c1 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
$waves_dir = $ARGV[0];
$in_list = $ARGV[1];
diff --git a/egs/yesno/s5/local/create_yesno_waves_test_train.pl b/egs/yesno/s5/local/create_yesno_waves_test_train.pl
index e532d3d2f7927186c8f5546a8c8139d75c1a4bd2..fefe12fbe20b5cbc47e585fbb7e492ee09c585c2 100755 (executable)
-#!/usr/bin/perl
+#!/usr/bin/env perl
$full_list = $ARGV[0];
$test_list = $ARGV[1];