Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieuhoang@gmail.com>2015-04-13 19:42:33 +0300
committerHieu Hoang <hieuhoang@gmail.com>2015-04-13 19:42:33 +0300
commit6162223690d8a9a3d461a85acdafe9cbef7bf3e5 (patch)
tree0a3d5f2e351804f8c1ff3e8ab56fbfe04bdc701c /scripts/analysis
parent05b31b53f22abfabb8141b6cd7b0246890d521a1 (diff)
add use warnings to all perl scripts
Diffstat (limited to 'scripts/analysis')
-rwxr-xr-xscripts/analysis/bootstrap-hypothesis-difference-significance.pl1
-rwxr-xr-xscripts/analysis/sentence-by-sentence.pl1
-rwxr-xr-xscripts/analysis/sg2dot.perl1
-rwxr-xr-xscripts/analysis/show-phrases-used.pl2
-rwxr-xr-xscripts/analysis/smtgui/filter-phrase-table.pl1
5 files changed, 6 insertions, 0 deletions
diff --git a/scripts/analysis/bootstrap-hypothesis-difference-significance.pl b/scripts/analysis/bootstrap-hypothesis-difference-significance.pl
index b74aa003d..149676b6f 100755
--- a/scripts/analysis/bootstrap-hypothesis-difference-significance.pl
+++ b/scripts/analysis/bootstrap-hypothesis-difference-significance.pl
@@ -14,6 +14,7 @@ use utf8;
# 23.01.2010: added NIST p-value and interval computation
###############################################
+use warnings;
use strict;
#constants
diff --git a/scripts/analysis/sentence-by-sentence.pl b/scripts/analysis/sentence-by-sentence.pl
index c8bc367b2..4f6560a56 100755
--- a/scripts/analysis/sentence-by-sentence.pl
+++ b/scripts/analysis/sentence-by-sentence.pl
@@ -4,6 +4,7 @@
#sentence-by-sentence: take in a system output, with any number of factors, and a reference translation, also maybe with factors, and show each sentence and its errors
#usage: sentence-by-sentence SYSOUT [REFERENCE]+ > sentences.html
+use warnings;
use strict;
use Getopt::Long;
diff --git a/scripts/analysis/sg2dot.perl b/scripts/analysis/sg2dot.perl
index a165cf25e..b17dfd9fb 100755
--- a/scripts/analysis/sg2dot.perl
+++ b/scripts/analysis/sg2dot.perl
@@ -4,6 +4,7 @@
# Script to convert MOSES searchgraph to DOT format
#
+use warnings;
use strict;
use File::Path;
use File::Basename;
diff --git a/scripts/analysis/show-phrases-used.pl b/scripts/analysis/show-phrases-used.pl
index c31e930d5..0a719d207 100755
--- a/scripts/analysis/show-phrases-used.pl
+++ b/scripts/analysis/show-phrases-used.pl
@@ -5,7 +5,9 @@
#usage: show-phrases-used DECODER_OUTFILE > output.html
# where DECODER_OUTFILE is the output of moses with the -T (show alignments) option
+use warnings;
use strict;
+
BEGIN
{
my $wd= `pawd 2>/dev/null`;
diff --git a/scripts/analysis/smtgui/filter-phrase-table.pl b/scripts/analysis/smtgui/filter-phrase-table.pl
index ed09d0b3f..9f411f3fa 100755
--- a/scripts/analysis/smtgui/filter-phrase-table.pl
+++ b/scripts/analysis/smtgui/filter-phrase-table.pl
@@ -9,6 +9,7 @@
#similar function to filter-model-given-input.pl, but only operates
#on the phrase table and doesn't require that any subdirectories exist
+use warnings;
use strict;
my $MAX_LENGTH = 10;