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:
authorJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-05-29 14:30:26 +0300
committerJeroen Vermeulen <jtv@precisiontranslationtools.com>2015-05-29 14:30:26 +0300
commitef028446f3640e007215b4576a4dc52a9c9de6db (patch)
tree2ff9de308868631414617bf09b641b60be8bb151 /scripts/analysis
parent26170a41790bc1dfbc01c90dbcbf2699a0fe3cd0 (diff)
Add license notices to scripts.
This is not pleasant to read (and much, much less pleasant to write!) but sort of necessary in an open project. Right now it's quite hard to figure out what is licensed how, which doesn't matter much to most people but can suddenly become very important when people want to know what they're being allowed to do. I kept the notices as short as I could. As far as I could see, everything without a clear license notice is LGPL v2.1 or later.
Diffstat (limited to 'scripts/analysis')
-rwxr-xr-xscripts/analysis/bootstrap-hypothesis-difference-significance.pl3
-rwxr-xr-xscripts/analysis/extract-target-trees.py12
-rwxr-xr-xscripts/analysis/nontranslated_words.pl3
-rwxr-xr-xscripts/analysis/oov.pl3
-rwxr-xr-xscripts/analysis/sentence-by-sentence.pl3
-rwxr-xr-xscripts/analysis/sg2dot.perl2
-rwxr-xr-xscripts/analysis/show-phrases-used.pl3
-rw-r--r--scripts/analysis/smtgui/Corpus.pm3
-rwxr-xr-xscripts/analysis/smtgui/filter-phrase-table.pl3
-rwxr-xr-xscripts/analysis/smtgui/newsmtgui.cgi3
-rwxr-xr-xscripts/analysis/suspicious_tokenization.pl3
-rwxr-xr-xscripts/analysis/weight-scan-summarize.sh4
-rwxr-xr-xscripts/analysis/weight-scan.pl4
13 files changed, 45 insertions, 4 deletions
diff --git a/scripts/analysis/bootstrap-hypothesis-difference-significance.pl b/scripts/analysis/bootstrap-hypothesis-difference-significance.pl
index 8e6a6255a..9a3f63d69 100755
--- a/scripts/analysis/bootstrap-hypothesis-difference-significance.pl
+++ b/scripts/analysis/bootstrap-hypothesis-difference-significance.pl
@@ -1,4 +1,7 @@
#!/usr/bin/env perl
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
use utf8;
###############################################
diff --git a/scripts/analysis/extract-target-trees.py b/scripts/analysis/extract-target-trees.py
index 3a92fdc4d..7166211d9 100755
--- a/scripts/analysis/extract-target-trees.py
+++ b/scripts/analysis/extract-target-trees.py
@@ -1,9 +1,13 @@
#!/usr/bin/env python
-
-# Usage: extract-target-trees.py [FILE]
#
-# Reads moses-chart's -T output from FILE or standard input and writes trees to
-# standard output in Moses' XML tree format.
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
+
+"""Usage: extract-target-trees.py [FILE]
+
+Reads moses-chart's -T output from FILE or standard input and writes trees to
+standard output in Moses' XML tree format.
+"""
import re
import sys
diff --git a/scripts/analysis/nontranslated_words.pl b/scripts/analysis/nontranslated_words.pl
index 51a4f9d20..7213deb76 100755
--- a/scripts/analysis/nontranslated_words.pl
+++ b/scripts/analysis/nontranslated_words.pl
@@ -1,4 +1,7 @@
#!/usr/bin/env perl
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
# $Id$
# Reads a source and hypothesis file and counts equal tokens. Some of these
diff --git a/scripts/analysis/oov.pl b/scripts/analysis/oov.pl
index 052c9994d..9756887c9 100755
--- a/scripts/analysis/oov.pl
+++ b/scripts/analysis/oov.pl
@@ -1,6 +1,9 @@
#!/usr/bin/env perl
# Display OOV rate of a test set against a training corpus or a phrase table.
# Ondrej Bojar
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
use strict;
use warnings;
diff --git a/scripts/analysis/sentence-by-sentence.pl b/scripts/analysis/sentence-by-sentence.pl
index 72b70dc72..b9eb6e56d 100755
--- a/scripts/analysis/sentence-by-sentence.pl
+++ b/scripts/analysis/sentence-by-sentence.pl
@@ -1,4 +1,7 @@
#!/usr/bin/env perl
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
# $Id$
#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
diff --git a/scripts/analysis/sg2dot.perl b/scripts/analysis/sg2dot.perl
index e9c1639ed..5f9a5ea1d 100755
--- a/scripts/analysis/sg2dot.perl
+++ b/scripts/analysis/sg2dot.perl
@@ -3,6 +3,8 @@
# Author : Loic BARRAULT
# Script to convert MOSES searchgraph to DOT format
#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
use warnings;
use strict;
diff --git a/scripts/analysis/show-phrases-used.pl b/scripts/analysis/show-phrases-used.pl
index 522e6d3ff..9428ea9b8 100755
--- a/scripts/analysis/show-phrases-used.pl
+++ b/scripts/analysis/show-phrases-used.pl
@@ -1,4 +1,7 @@
#!/usr/bin/env perl
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
# $Id$
#show-phrases-used: display all source and target phrases for each sentence in a corpus, and give average phrase length used
diff --git a/scripts/analysis/smtgui/Corpus.pm b/scripts/analysis/smtgui/Corpus.pm
index f050a9f6d..2391a6c15 100644
--- a/scripts/analysis/smtgui/Corpus.pm
+++ b/scripts/analysis/smtgui/Corpus.pm
@@ -1,5 +1,8 @@
#package Corpus: hold a bunch of sentences in any language, with translation factors and stats about individual sentences and the corpus as a whole
#Evan Herbst, 7 / 25 / 06
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
package Corpus;
BEGIN
diff --git a/scripts/analysis/smtgui/filter-phrase-table.pl b/scripts/analysis/smtgui/filter-phrase-table.pl
index 55f2619c0..cd0f6b91b 100755
--- a/scripts/analysis/smtgui/filter-phrase-table.pl
+++ b/scripts/analysis/smtgui/filter-phrase-table.pl
@@ -1,4 +1,7 @@
#!/usr/bin/env perl
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
# $Id$
#by Philipp Koehn, de-augmented by Evan Herbst
diff --git a/scripts/analysis/smtgui/newsmtgui.cgi b/scripts/analysis/smtgui/newsmtgui.cgi
index 32ad3a948..034ee265e 100755
--- a/scripts/analysis/smtgui/newsmtgui.cgi
+++ b/scripts/analysis/smtgui/newsmtgui.cgi
@@ -1,4 +1,7 @@
#!/usr/bin/perl -w
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
# $Id$
use strict;
diff --git a/scripts/analysis/suspicious_tokenization.pl b/scripts/analysis/suspicious_tokenization.pl
index 3ea15154e..f807153d9 100755
--- a/scripts/analysis/suspicious_tokenization.pl
+++ b/scripts/analysis/suspicious_tokenization.pl
@@ -2,6 +2,9 @@
# Collects and prints all n-grams that appear in the given corpus both
# tokenized as well as untokenized.
# Ondrej Bojar
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
use strict;
use warnings;
diff --git a/scripts/analysis/weight-scan-summarize.sh b/scripts/analysis/weight-scan-summarize.sh
index 237182736..2fccb6470 100755
--- a/scripts/analysis/weight-scan-summarize.sh
+++ b/scripts/analysis/weight-scan-summarize.sh
@@ -1,4 +1,8 @@
#!/bin/bash
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
+
# Hackish summarization of weight-scan.pl results, heavily relies on tools by
# Ondrej Bojar (bojar@ufal.mff.cuni.cz), some of which need Mercury; beware.
diff --git a/scripts/analysis/weight-scan.pl b/scripts/analysis/weight-scan.pl
index b33360694..b51a6bcd1 100755
--- a/scripts/analysis/weight-scan.pl
+++ b/scripts/analysis/weight-scan.pl
@@ -1,4 +1,8 @@
#!/usr/bin/env perl
+#
+# This file is part of moses. Its use is licensed under the GNU Lesser General
+# Public License version 2.1 or, at your option, any later version.
+
# runs Moses many times changing the values of one weight, all others fixed
# nbest lists are always produced to allow for comparison of real and
# 'projected' BLEU (BLEU estimated from n-best lists collected at a neighouring