-
Notifications
You must be signed in to change notification settings - Fork 54
Using ELMo with TorchText #7
Copy link
Copy link
Open
Description
Hi Keita, thanks for the tutorial. I have one question, though.
Assume this is a sentiment analysis task, and suppose I already have ELMo representation for every sentence in the shape (seq_len, elmo_dimension).
I want to either:
- concat this representation with the embedding from embedding layer or,
- use this representation before passing it to RNN/CNN.
Do you have any idea on how to use this with Torchtext? I am not sure how to add the elmo sentence representation to the batch and pass it to my model together with the input (which has been converted to indices) ?
Any advice/pointer would be greatly appreciated.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels