diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-23 22:36:00 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-10-23 22:36:00 +0300 |
commit | 89401944f85e52cfd1d79d36739c057c9db204d4 (patch) | |
tree | 970aa25c52edb80a53e137b0c7c30cd1ff583288 /phrase-extract | |
parent | bc665fc59020c96688bd3e5867cd8d48b63aa0a3 (diff) | |
parent | 6e36500fdc64bb045771e812f913688d498be871 (diff) |
Merge branch 'master' of https://github.com/moses-smt/mosesdecoder
Diffstat (limited to 'phrase-extract')
-rw-r--r-- | phrase-extract/extract-ghkm/Subgraph.cpp | 5 |
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); } |