From 519a4b360cb8e5c9dafb8079f7844c9d7b26b741 Mon Sep 17 00:00:00 2001 From: piotrmp <piotr.m.przybyla@gmail.com> Date: Thu, 1 Dec 2022 16:34:17 +0100 Subject: [PATCH] Subwords support in reading, writing and printing. --- src/lambo/utils/printer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lambo/utils/printer.py b/src/lambo/utils/printer.py index 3de74e7..bd731ba 100644 --- a/src/lambo/utils/printer.py +++ b/src/lambo/utils/printer.py @@ -20,7 +20,7 @@ def print_document_to_screen(document): formatted = '' for token in sentence.tokens: if token.is_multi_word: - formatted += '(' + token.text+ '=(' + '-'.join(token.words) + '))' + formatted += '(' + token.text+ '=' + '-'.join(token.words) + ')' else: formatted += '(' + token.text + ')' print('TOKENS: ' + formatted) -- GitLab