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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-10-23 22:36:00 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-10-23 22:36:00 +0300
commit89401944f85e52cfd1d79d36739c057c9db204d4 (patch)
tree970aa25c52edb80a53e137b0c7c30cd1ff583288 /phrase-extract
parentbc665fc59020c96688bd3e5867cd8d48b63aa0a3 (diff)
parent6e36500fdc64bb045771e812f913688d498be871 (diff)
Merge branch 'master' of https://github.com/moses-smt/mosesdecoder
Diffstat (limited to 'phrase-extract')
-rw-r--r--phrase-extract/extract-ghkm/Subgraph.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/phrase-extract/extract-ghkm/Subgraph.cpp b/phrase-extract/extract-ghkm/Subgraph.cpp
index ef4b07200..e2e2f6c99 100644
--- a/phrase-extract/extract-ghkm/Subgraph.cpp
+++ b/phrase-extract/extract-ghkm/Subgraph.cpp
@@ -137,6 +137,11 @@ void Subgraph::RecursivelyPrintTree(const Node *n, std::ostream &out) const
for (std::vector<Node *>::const_iterator p(children.begin());
p != children.end(); ++p) {
Node *child = *p;
+ if (child->GetType() == SOURCE) {
+ // This is possible due to the heuristic for attaching unaligned
+ // source words.
+ continue;
+ }
out << " ";
RecursivelyPrintTree(child,out);
}