You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering what the best approach is to use Flair with pre-tokenized text. My data is, broadly speaking, already in the form (["Hi", ",", "how", "are", "you", "Mr.", "President", "?"], ["O", "O", "O", "O", "O", "B-PER", "L-PER", "O"]) for entity tagging. As far as I can see, Sentence does not have functionality for this out of the box. Do I just populate the tokens list manually starting from an empty sentence, or how should I go about this?
Thanks for your awesome work!
The text was updated successfully, but these errors were encountered:
I just want to point out, that the Sentence also directly accepts tokens, hence Sentence(tokens) should be more elegant than Sentence(" ".join(tokens), use_tokenizer=False)
Dear Flair team,
I was wondering what the best approach is to use Flair with pre-tokenized text. My data is, broadly speaking, already in the form
(["Hi", ",", "how", "are", "you", "Mr.", "President", "?"], ["O", "O", "O", "O", "O", "B-PER", "L-PER", "O"])
for entity tagging. As far as I can see,Sentence
does not have functionality for this out of the box. Do I just populate thetokens
list manually starting from an empty sentence, or how should I go about this?Thanks for your awesome work!
The text was updated successfully, but these errors were encountered: