sandbox/nnet3: merging changes from trunk.

git-svn-id: http://svn.code.sf.net/p/kaldi/code@5121 5e6a8d80-dfce-4ca6-a32a-6e07a63d50c8
This commit is contained in:
danielpovey 2015-06-05 21:06:37 +00:00
Родитель a4496c181f
Коммит 9160105812
480 изменённых файлов: 951 добавлений и 1113 удалений

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski) # Copyright 2014 University of Edinburgh (Author: Pawel Swietojanski)

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0. # Copyright 2012 Johns Hopkins University (Author: Daniel Povey). Apache 2.0.
# 2013 University of Edinburgh (Author: Pawel Swietojanski) # 2013 University of Edinburgh (Author: Pawel Swietojanski)

Просмотреть файл

@ -1,4 +1,5 @@
#!/usr/bin/perl -w #!/usr/bin/env perl
use warnings; #sed replacement for -w perl parameter
# Copyright 2013 Arnab Ghoshal # Copyright 2013 Arnab Ghoshal

Просмотреть файл

@ -67,10 +67,10 @@ if [ $stage -le 2 ]; then
$data_fmllr/$mic/train_tr90 $data_fmllr/$mic/train_cv10 data/lang $ali $ali $dir || exit 1; $data_fmllr/$mic/train_tr90 $data_fmllr/$mic/train_cv10 data/lang $ali $ali $dir || exit 1;
# Decode (reuse HCLG graph) # Decode (reuse HCLG graph)
steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf --acwt 0.1 \ steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf --acwt 0.1 \
--num-threads 3 --parallel-opts "-pe smp 4" \ --num-threads 3 \
$graph_dir $data_fmllr/$mic/dev $dir/decode_dev_${lm_suffix} || exit 1; $graph_dir $data_fmllr/$mic/dev $dir/decode_dev_${lm_suffix} || exit 1;
steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf --acwt 0.1 \ steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf --acwt 0.1 \
--num-threads 3 --parallel-opts "-pe smp 4" \ --num-threads 3 \
$graph_dir $data_fmllr/$mic/eval $dir/decode_eval_${lm_suffix} || exit 1; $graph_dir $data_fmllr/$mic/eval $dir/decode_eval_${lm_suffix} || exit 1;
fi fi
@ -96,11 +96,11 @@ if [ $stage -le 4 ]; then
# Decode (reuse HCLG graph) # Decode (reuse HCLG graph)
for ITER in 1; do for ITER in 1; do
steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf \ steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf \
--num-threads 3 --parallel-opts "-pe smp 4" \ --num-threads 3 \
--nnet $dir/${ITER}.nnet --acwt $acwt \ --nnet $dir/${ITER}.nnet --acwt $acwt \
$graph_dir $data_fmllr/$mic/dev $dir/decode_dev_${lm_suffix} || exit 1; $graph_dir $data_fmllr/$mic/dev $dir/decode_dev_${lm_suffix} || exit 1;
steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf \ steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf \
--num-threads 3 --parallel-opts "-pe smp 4" \ --num-threads 3 \
--nnet $dir/${ITER}.nnet --acwt $acwt \ --nnet $dir/${ITER}.nnet --acwt $acwt \
$graph_dir $data_fmllr/$mic/eval $dir/decode_eval_${lm_suffix} || exit 1; $graph_dir $data_fmllr/$mic/eval $dir/decode_eval_${lm_suffix} || exit 1;
done done
@ -126,11 +126,11 @@ if [ $stage -le 6 ]; then
# Decode (reuse HCLG graph) # Decode (reuse HCLG graph)
for ITER in 1 2 3 4; do for ITER in 1 2 3 4; do
steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf \ steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf \
--num-threads 3 --parallel-opts "-pe smp 4" \ --num-threads 3 \
--nnet $dir/${ITER}.nnet --acwt $acwt \ --nnet $dir/${ITER}.nnet --acwt $acwt \
$graph_dir $data_fmllr/$mic/dev $dir/decode_dev_${lm_suffix}_$ITER || exit 1; $graph_dir $data_fmllr/$mic/dev $dir/decode_dev_${lm_suffix}_$ITER || exit 1;
steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf \ steps/nnet/decode.sh --nj 6 --cmd "$decode_cmd" --config conf/decode_dnn.conf \
--num-threads 3 --parallel-opts "-pe smp 4" \ --num-threads 3 \
--nnet $dir/${ITER}.nnet --acwt $acwt \ --nnet $dir/${ITER}.nnet --acwt $acwt \
$graph_dir $data_fmllr/$mic/eval $dir/decode_eval_${lm_suffix}_$ITER || exit 1; $graph_dir $data_fmllr/$mic/eval $dir/decode_eval_${lm_suffix}_$ITER || exit 1;
done done

Просмотреть файл

@ -1,4 +1,5 @@
#!/usr/bin/perl -w #!/usr/bin/env perl
use warnings; #sed replacement for -w perl parameter
# Author: Peng Qi (pengqi@cs.stanford.edu) # Author: Peng Qi (pengqi@cs.stanford.edu)
# This script maps Switchboard speaker IDs to the true physical speakers # This script maps Switchboard speaker IDs to the true physical speakers

Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# corrupts the wave files supplied via input pipe with the specified # corrupts the wave files supplied via input pipe with the specified

Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0.
# creates a segments file in the provided data directory # creates a segments file in the provided data directory

Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# script to generate the file_patterns of the AIR database # script to generate the file_patterns of the AIR database

Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# script to generate multicondition training data / dev data / test data # script to generate multicondition training data / dev data / test data
import argparse, glob, math, os, random, scipy.io.wavfile, sys import argparse, glob, math, os, random, scipy.io.wavfile, sys

Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# normalizes the wave files provided in input file list with a common scaling factor # normalizes the wave files provided in input file list with a common scaling factor

Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Vijayaditya Peddinti). Apache 2.0.
# script to read rir files from rwcp/air/reverb2014 databases # script to read rir files from rwcp/air/reverb2014 databases

Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
# Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0. # Copyright 2014 Johns Hopkins University (Authors: Daniel Povey, Vijayaditya Peddinti). Apache 2.0.
# Script to combine ctms for uniformly segmented, with overlaps # Script to combine ctms for uniformly segmented, with overlaps

Просмотреть файл

@ -7,10 +7,10 @@
#a) JHU cluster options #a) JHU cluster options
export train_cmd="queue.pl -l arch=*64" export train_cmd="queue.pl -l arch=*64"
export decode_cmd="queue.pl -l arch=*64,mem_free=2G,ram_free=2G" export decode_cmd="queue.pl -l arch=*64 --mem 2G"
export mkgraph_cmd="queue.pl -l arch=*64,ram_free=4G,mem_free=4G" export mkgraph_cmd="queue.pl -l arch=*64 --mem 4G"
export big_memory_cmd="queue.pl -l arch=*64,ram_free=8G,mem_free=8G" export big_memory_cmd="queue.pl -l arch=*64 --mem 8G"
export cuda_cmd="queue.pl -l gpu=1" export cuda_cmd="queue.pl --gpu 1"
#b) BUT cluster options #b) BUT cluster options

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Add counts to an oovlist. # Add counts to an oovlist.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program takes the output of score_prons.pl and collates # This program takes the output of score_prons.pl and collates
# it for each (rule, destress) pair so that we get the # it for each (rule, destress) pair so that we get the

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program reads and writes either a dictionary or just a list # This program reads and writes either a dictionary or just a list

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Reads a dictionary, and prints out a list of words that seem to be pronounced # Reads a dictionary, and prints out a list of words that seem to be pronounced
# as acronyms (not including plurals of acronyms, just acronyms). Uses # as acronyms (not including plurals of acronyms, just acronyms). Uses

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Reads a dictionary (for prons of letters), and an OOV list, # Reads a dictionary (for prons of letters), and an OOV list,
# and puts out candidate pronunciations of words in that list # and puts out candidate pronunciations of words in that list

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This script takes three command-line arguments (typically files, or "-"): # This script takes three command-line arguments (typically files, or "-"):
# the suffix rules (as output by get_rules.pl), the rule-hierarchy # the suffix rules (as output by get_rules.pl), the rule-hierarchy

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
#This reads in rules, of the form put out by get_rules.pl, e.g.: #This reads in rules, of the form put out by get_rules.pl, e.g.:
# ERT,,ER0 T, # ERT,,ER0 T,

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program creates suggested suffix rules from a dictionary. # This program creates suggested suffix rules from a dictionary.
# It outputs quadruples of the form: # It outputs quadruples of the form:

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program enforces the rule that # This program enforces the rule that
# if a "more specific" rule applies, we cannot use the more general rule. # if a "more specific" rule applies, we cannot use the more general rule.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl, # This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl,
# which is 7-tuples, one per line, of the form: # which is 7-tuples, one per line, of the form:

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Used in conjunction with get_rules.pl # Used in conjunction with get_rules.pl
# example input line: XANTHE Z AE1 N DH # example input line: XANTHE Z AE1 N DH

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program takes candidate prons from "get_candidate_prons.pl" or # This program takes candidate prons from "get_candidate_prons.pl" or
# "limit_candidate_prons.pl", and a reference dictionary covering those words, # "limit_candidate_prons.pl", and a reference dictionary covering those words,

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program takes the output of count_rules.pl, which is tuples # This program takes the output of count_rules.pl, which is tuples
# of the form # of the form

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl # This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl
# or reverse_candidates.pl, which is 7-tuples, one per line, of the form: # or reverse_candidates.pl, which is 7-tuples, one per line, of the form:

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

1
egs/babel/s5/conf/bnf/config_full.py Normal file → Executable file
Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
################################################# #################################################
## PTDNN - Python Toolkit for Deep Neural Network ## PTDNN - Python Toolkit for Deep Neural Network
## Author: Yajie Miao ## Author: Yajie Miao

1
egs/babel/s5/conf/bnf/config_limited.py Normal file → Executable file
Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
################################################# #################################################
## PTDNN - Python Toolkit for Deep Neural Network ## PTDNN - Python Toolkit for Deep Neural Network
## Author: Yajie Miao ## Author: Yajie Miao

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,5 @@
#!/usr/bin/perl -w #!/usr/bin/env perl
use warnings; #sed replacement for -w perl parameter
# Copyright 2012 Johns Hopkins University (Author: Jan Trmal) # Copyright 2012 Johns Hopkins University (Author: Jan Trmal)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Add counts to an oovlist. # Add counts to an oovlist.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program takes the output of score_prons.pl and collates # This program takes the output of score_prons.pl and collates
# it for each (rule, destress) pair so that we get the # it for each (rule, destress) pair so that we get the

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program reads and writes either a dictionary or just a list # This program reads and writes either a dictionary or just a list

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Reads a dictionary, and prints out a list of words that seem to be pronounced # Reads a dictionary, and prints out a list of words that seem to be pronounced
# as acronyms (not including plurals of acronyms, just acronyms). Uses # as acronyms (not including plurals of acronyms, just acronyms). Uses

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Reads a dictionary (for prons of letters), and an OOV list, # Reads a dictionary (for prons of letters), and an OOV list,
# and puts out candidate pronunciations of words in that list # and puts out candidate pronunciations of words in that list

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This script takes three command-line arguments (typically files, or "-"): # This script takes three command-line arguments (typically files, or "-"):
# the suffix rules (as output by get_rules.pl), the rule-hierarchy # the suffix rules (as output by get_rules.pl), the rule-hierarchy

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
#This reads in rules, of the form put out by get_rules.pl, e.g.: #This reads in rules, of the form put out by get_rules.pl, e.g.:
# ERT,,ER0 T, # ERT,,ER0 T,

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program creates suggested suffix rules from a dictionary. # This program creates suggested suffix rules from a dictionary.
# It outputs quadruples of the form: # It outputs quadruples of the form:

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program enforces the rule that # This program enforces the rule that
# if a "more specific" rule applies, we cannot use the more general rule. # if a "more specific" rule applies, we cannot use the more general rule.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl, # This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl,
# which is 7-tuples, one per line, of the form: # which is 7-tuples, one per line, of the form:

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Used in conjunction with get_rules.pl # Used in conjunction with get_rules.pl
# example input line: XANTHE Z AE1 N DH # example input line: XANTHE Z AE1 N DH

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program takes candidate prons from "get_candidate_prons.pl" or # This program takes candidate prons from "get_candidate_prons.pl" or
# "limit_candidate_prons.pl", and a reference dictionary covering those words, # "limit_candidate_prons.pl", and a reference dictionary covering those words,

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This program takes the output of count_rules.pl, which is tuples # This program takes the output of count_rules.pl, which is tuples
# of the form # of the form

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl # This takes the output of e.g. get_candidate_prons.pl or limit_candidate_prons.pl
# or reverse_candidates.pl, which is 7-tuples, one per line, of the form: # or reverse_candidates.pl, which is 7-tuples, one per line, of the form:

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
use strict; use strict;
use warnings; use warnings;

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Jan Trmal) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen, Jan Trmal)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#! /usr/bin/perl #!/usr/bin/env perl
use warnings; use warnings;
use strict; use strict;

2
egs/babel/s5/local/gridsearch2.pl Normal file → Executable file
Просмотреть файл

@ -1,4 +1,4 @@
#! /usr/bin/perl #!/usr/bin/env perl
use warnings; use warnings;
use strict; use strict;

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,5 @@
#!/usr/bin/perl -w #!/usr/bin/env perl
use warnings; #sed replacement for -w perl parameter
# Copyright 2012 Johns Hopkins University (author: Daniel Povey) # Copyright 2012 Johns Hopkins University (author: Daniel Povey)
# makes lexicon FST -- special version only for use in keyword search # makes lexicon FST -- special version only for use in keyword search

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
use Getopt::Long; use Getopt::Long;
######################################################################## ########################################################################

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
use Getopt::Long; use Getopt::Long;
use Data::Dumper; use Data::Dumper;

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
use Getopt::Long; use Getopt::Long;
use Encode; use Encode;

Просмотреть файл

@ -33,7 +33,7 @@ lat_weights=
word_ins_penalty=0.0 word_ins_penalty=0.0
min_lmwt=7 min_lmwt=7
max_lmwt=17 max_lmwt=17
parallel_opts="-pe smp 3" parallel_opts="--num-threads 3"
skip_scoring=false skip_scoring=false
ctm_name= ctm_name=
#end configuration section. #end configuration section.
@ -49,7 +49,7 @@ Options:
--cmd (run.pl|queue.pl...) # specify how to run the sub-processes. --cmd (run.pl|queue.pl...) # specify how to run the sub-processes.
--stage (0|1|2) # (createCTM | filterCTM | runSclite). --stage (0|1|2) # (createCTM | filterCTM | runSclite).
--parallel-opts <string> # extra options to command for combination stage, --parallel-opts <string> # extra options to command for combination stage,
# default '-pe smp 3' # default '--num-threads 3'
--cer (0|1) # compute CER in addition to WER --cer (0|1) # compute CER in addition to WER
"; ";

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
use Getopt::Long; use Getopt::Long;
################################################################################ ################################################################################

Просмотреть файл

@ -13,7 +13,7 @@ set -u
if [ ! -f exp/combine_2/decode_dev2h/.done ]; then if [ ! -f exp/combine_2/decode_dev2h/.done ]; then
for iter in 1 2 3 4; do for iter in 1 2 3 4; do
local/score_combine.sh --cmd "queue.pl -l mem_free=2.0G,ram_free=2.0G" \ local/score_combine.sh --cmd "queue.pl --mem 2G" \
data/dev2h data/lang exp/tri6_nnet/decode_dev2h exp/sgmm5_mmi_b0.1/decode_dev2h_fmllr_it$iter exp/combine_2/decode_dev2h_it$iter data/dev2h data/lang exp/tri6_nnet/decode_dev2h exp/sgmm5_mmi_b0.1/decode_dev2h_fmllr_it$iter exp/combine_2/decode_dev2h_it$iter
touch exp/combine_2/decode_dev2h/.done touch exp/combine_2/decode_dev2h/.done
done done
@ -25,7 +25,7 @@ if [ ! -f exp/combine_3/decode_dev2h/.done ]; then
if [ ! -f exp_BNF/sgmm7_mmi_b0.1/decode_dev2h_fmllr_it$iter/.done ]; then if [ ! -f exp_BNF/sgmm7_mmi_b0.1/decode_dev2h_fmllr_it$iter/.done ]; then
echo "BNF decode in exp_BNF/sgmm7_mmi_b0.1/decode_dev2h_fmllr_it$iter is not done, skipping this step." echo "BNF decode in exp_BNF/sgmm7_mmi_b0.1/decode_dev2h_fmllr_it$iter is not done, skipping this step."
fi fi
local/score_combine.sh --cmd "queue.pl -l mem_free=2.0G,ram_free=2.0G" \ local/score_combine.sh --cmd "queue.pl --mem 2G" \
data/dev2h data/lang exp_BNF/sgmm7_mmi_b0.1/decode_dev2h_fmllr_it$iter:10 \ data/dev2h data/lang exp_BNF/sgmm7_mmi_b0.1/decode_dev2h_fmllr_it$iter:10 \
exp/sgmm5_mmi_b0.1/decode_dev2h_fmllr_it$iter exp/tri5_nnet/decode_dev2h exp/combine_3/decode_dev2h_it$iter exp/sgmm5_mmi_b0.1/decode_dev2h_fmllr_it$iter exp/tri5_nnet/decode_dev2h exp/combine_3/decode_dev2h_it$iter
touch exp_BNF/sgmm7_mmi_b0.1/decode_dev2h_fmllr_it$iter/.done touch exp_BNF/sgmm7_mmi_b0.1/decode_dev2h_fmllr_it$iter/.done

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2013 Karlsruhe Institute of Technology (Author: Jonas Gehring) # Copyright 2013 Karlsruhe Institute of Technology (Author: Jonas Gehring)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2013 Karlsruhe Institute of Technology (Author: Jonas Gehring) # Copyright 2013 Karlsruhe Institute of Technology (Author: Jonas Gehring)
# Apache 2.0. # Apache 2.0.

1
egs/babel/s5b/conf/bnf/config_full.py Normal file → Executable file
Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
################################################# #################################################
## PTDNN - Python Toolkit for Deep Neural Network ## PTDNN - Python Toolkit for Deep Neural Network
## Author: Yajie Miao ## Author: Yajie Miao

1
egs/babel/s5b/conf/bnf/config_limited.py Normal file → Executable file
Просмотреть файл

@ -1,3 +1,4 @@
#!/usr/bin/env python
################################################# #################################################
## PTDNN - Python Toolkit for Deep Neural Network ## PTDNN - Python Toolkit for Deep Neural Network
## Author: Yajie Miao ## Author: Yajie Miao

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,5 @@
#!/usr/bin/perl -w #!/usr/bin/env perl
use warnings; #sed replacement for -w perl parameter
# Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey) # Copyright 2012-2014 Johns Hopkins University (Author: Daniel Povey)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,5 @@
#!/usr/bin/perl -w #!/usr/bin/env perl
use warnings; #sed replacement for -w perl parameter
# Copyright 2012 Johns Hopkins University (Author: Jan Trmal) # Copyright 2012 Johns Hopkins University (Author: Jan Trmal)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
use strict; use strict;
use warnings; use warnings;

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#! /usr/bin/perl #!/usr/bin/env perl
use warnings; use warnings;
use strict; use strict;

2
egs/babel/s5b/local/gridsearch2.pl Normal file → Executable file
Просмотреть файл

@ -1,4 +1,4 @@
#! /usr/bin/perl #!/usr/bin/env perl
use warnings; use warnings;
use strict; use strict;

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Yenda Trmal) # Copyright 2012 Johns Hopkins University (Author: Yenda Trmal)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,5 @@
#!/usr/bin/perl -w #!/usr/bin/env perl
use warnings; #sed replacement for -w perl parameter
# Copyright 2012 Johns Hopkins University (author: Daniel Povey) # Copyright 2012 Johns Hopkins University (author: Daniel Povey)
# makes lexicon FST -- special version only for use in keyword search # makes lexicon FST -- special version only for use in keyword search

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2012 Johns Hopkins University (Author: Guoguo Chen) # Copyright 2012 Johns Hopkins University (Author: Guoguo Chen)
# Apache 2.0. # Apache 2.0.

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
# Copyright 2010-2011 Microsoft Corporation # Copyright 2010-2011 Microsoft Corporation
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
use Getopt::Long; use Getopt::Long;
######################################################################## ########################################################################

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
use Getopt::Long; use Getopt::Long;
use Data::Dumper; use Data::Dumper;

Просмотреть файл

@ -1,4 +1,4 @@
#!/usr/bin/perl #!/usr/bin/env perl
use Getopt::Long; use Getopt::Long;
use Encode; use Encode;

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше