Open victoryhb opened 4 years ago
@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.
@oriram Do you have any hints on how to align the predicted senses to words in sentences?
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:
Hope this helps, Ori
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!