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
Thank you very much for sharing the code for your excellent paper.
Pardon me for asking this newbie question: how to align the tokens in the input sentence with the supersenses outputted from the model?
For example, the words in the sentence "I went to the store to buy some groceries." do not appear to be aligned with the following senses
@victoryhb This might be a long shot, but I was wondering whether you figured this out in the end. I also can't seem to figure out how to align the tokens.
Hi @MeMartijn,
There is no clear "alignment" as out-of-vocabulary words are split to multiple tokens (and therefore can have multiple supersenses).
However, you can do one of the following:
Enumerate over input_ids and predicted supersenses - This will give you the supersense for each token.
Change the tokenizer code such that it returns the index of the first token for each "word"
Thank you very much for sharing the code for your excellent paper.
Pardon me for asking this newbie question: how to align the tokens in the input sentence with the supersenses outputted from the model?
For example, the words in the sentence "I went to the store to buy some groceries." do not appear to be aligned with the following senses
as printed using the following code:
Could you please provide some example code for how to do this properly? Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: