python-ucto icon indicating copy to clipboard operation
python-ucto copied to clipboard

Question: possible to retrieve untokenized sentences?

Open pirolen opened this issue 4 years ago • 1 comments

May sound silly, but would it be possible to create a method that would allow retrieving sentences from the tokenizer without whitespace between punctuation marks (e.g. untokenized)? E.g. maybe providing a tuple that would hold two versions of a sentence, both the tokenized, as well as the original?

It is practical to keep the untokenized sentence in some scenarios (e.g. showing them to end users), and reconstructing it by script would be rather hacky and imprecise I guess.

pirolen avatar Oct 14 '21 20:10 pirolen

Not at bad idea at all, the information is availabe inside ucto after all (and propagated to the FoliA output), so we could do something similar for the python binding.

proycon avatar Oct 14 '21 20:10 proycon