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:
authorPhil Williams <philip.williams@mac.com>2013-09-14 01:16:42 +0400
committerPhil Williams <philip.williams@mac.com>2013-09-14 01:16:42 +0400
commitcdd9df19d26723645454f8ddef467489d1ed341b (patch)
tree1fd033efb62e16fc5fbb37077c7723cf7255bde3 /phrase-extract/extract-rules-main.cpp
parent3b03d803d98194772e4b0ac6df7041c8c98c0119 (diff)
Remove --OutputNTLengths from extract-rules, etc.
The option isn't used in master and the output is compatible with the current rule table format. If anyone wants this in master it should probably be fixed in the span-length branch then merged.
Diffstat (limited to 'phrase-extract/extract-rules-main.cpp')
-rw-r--r--phrase-extract/extract-rules-main.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/phrase-extract/extract-rules-main.cpp b/phrase-extract/extract-rules-main.cpp
index 97a593085..c625c3582 100644
--- a/phrase-extract/extract-rules-main.cpp
+++ b/phrase-extract/extract-rules-main.cpp
@@ -129,7 +129,6 @@ int main(int argc, char* argv[])
<< " --GlueGrammar FILE"
<< " | --UnknownWordLabel FILE"
<< " | --OnlyDirect"
- << " | --OutputNTLengths"
<< " | --MaxSpan[" << options.maxSpan << "]"
<< " | --MinHoleTarget[" << options.minHoleTarget << "]"
<< " | --MinHoleSource[" << options.minHoleSource << "]"
@@ -262,8 +261,6 @@ int main(int argc, char* argv[])
options.fractionalCounting = false;
} else if (strcmp(argv[i],"--PCFG") == 0) {
options.pcfgScore = true;
- } else if (strcmp(argv[i],"--OutputNTLengths") == 0) {
- options.outputNTLengths = true;
} else if (strcmp(argv[i],"--UnpairedExtractFormat") == 0) {
options.unpairedExtractFormat = true;
} else if (strcmp(argv[i],"--ConditionOnTargetLHS") == 0) {
@@ -663,9 +660,6 @@ void ExtractTask::saveHieroAlignment( int startT, int endT, int startS, int endS
rule.alignment += sourceSymbolIndex + "-" + targetSymbolIndex + " ";
if (!m_options.onlyDirectFlag)
rule.alignmentInv += targetSymbolIndex + "-" + sourceSymbolIndex + " ";
-
- rule.SetSpanLength(hole.GetPos(0), hole.GetSize(0), hole.GetSize(1) ) ;
-
}
rule.alignment.erase(rule.alignment.size()-1);
@@ -1077,9 +1071,6 @@ void ExtractTask::writeRulesToFile()
<< rule->target << " ||| "
<< rule->alignment << " ||| "
<< rule->count << " ||| ";
- if (m_options.outputNTLengths) {
- rule->OutputNTLengths(out);
- }
if (m_options.pcfgScore) {
out << " ||| " << rule->pcfgScore;
}