Closed Nithin-Holla closed 3 years ago
@Nithin-Holla The fix is really simple - when using the pre-tokenized text, the input has to be a list of a list of strings (in your case: [tokens]
), as it says in the documentation. I've been quite busy lately so I slightly regret taking a while to "fix" this easy issue. :sweat_smile:
@asajatovic Yes, thanks!
When using pretokenized text, the dependency tags turn out to be
ROOT
for all the tokens. This is however not the case when performing tagging on raw text directly.Here's a code sample replicating this issue for Swedish:
The output is the following: