diff options
| author | prasanth.kolachina <prasanth.kolachina@cse.gu.se> | 2015-04-27 15:59:49 +0000 |
|---|---|---|
| committer | prasanth.kolachina <prasanth.kolachina@cse.gu.se> | 2015-04-27 15:59:49 +0000 |
| commit | 8efff76703b4ac8cfb56f872d9a3866c5f3ad7ba (patch) | |
| tree | 64e31869d2954b7e541bfeecf98c68e57affb489 /src/runtime/python/examples | |
| parent | 53f0307404959796356d060083ef1d6caa808aae (diff) | |
K translations in pipeline
Diffstat (limited to 'src/runtime/python/examples')
| -rw-r--r-- | src/runtime/python/examples/translation_pipeline.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/python/examples/translation_pipeline.py b/src/runtime/python/examples/translation_pipeline.py index 47b189a0a..b081c68f0 100644 --- a/src/runtime/python/examples/translation_pipeline.py +++ b/src/runtime/python/examples/translation_pipeline.py @@ -357,7 +357,7 @@ def translation_pipeline(props): else: bestTranslationIdx = 0; for tgtlang in targetLanguages: - translationBuffer[tgtlang] = gf_utils.getKLinearizations(grammar, tgtlang, [parsesBlock]).next(); + translationBuffer[tgtlang] = gf_utils.getKLinearizations(grammar, tgtlang, [parsesBlock], K=bestK).next(); if bestK == 1: for tidx, translation in enumerate(translationBuffer[tgtlang]): if postprocessor(translation[1]).strip(): |
