diff options
| author | prasanth.kolachina <prasanth.kolachina@cse.gu.se> | 2015-04-24 18:46:03 +0000 |
|---|---|---|
| committer | prasanth.kolachina <prasanth.kolachina@cse.gu.se> | 2015-04-24 18:46:03 +0000 |
| commit | 100c58391664c53d4aad58f560f4bfb293581a3d (patch) | |
| tree | 7d0a3f67c5e0a47d119ed2ca47361ad9caa60667 /src/runtime | |
| parent | 7d876fd665857e6e416ec1dafe3580542ae9ff59 (diff) | |
Bug fix in gf_utils
Diffstat (limited to 'src/runtime')
| -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 a011a5366..47b189a0a 100644 --- a/src/runtime/python/examples/translation_pipeline.py +++ b/src/runtime/python/examples/translation_pipeline.py @@ -91,7 +91,7 @@ def pipeline_lexer(sentence): def web_lexer(grammar, lang, sentences): for instance in sentences: - tokensList = re.split('\s+?', instance); + tokensList = re.split('\s+?', instance.strip()); for idx, token in enumerate(tokensList): if not token[0].isupper(): continue; |
