Skip to content
Snippets Groups Projects
Commit 519a4b36 authored by piotrmp's avatar piotrmp
Browse files

Subwords support in reading, writing and printing.

parent 9113ee76
Branches
1 merge request!2Multiword generation
......@@ -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)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment