Closed JH-lee95 closed 1 year ago
Hi Lee, thanks for your interest in our work. The load_w2v
function only serves the purpose to map the word indices to their corresponding GloVe embeddings.
The input x
to the model during training and inference comes via the load_data_pair
. Inside this function, only clause words are used for constructing x
.
P.S. I'd highly recommend using VSCode debugger which allows you to monitor the code flow in real time for queries such as this.
Hope this helps and have a nice day yourself!
oh i see. i missed load_data_pair. thank you for your kind reply!
thank you for your nice work and dataset!
I have a question about the format of input text.
in this code, you extract "emotion" (line[2]) as well as "clause" (line[-1]).
I think the variable "emotion" might be a crucial hint for the model to predict whether this clause is emotion clause or not, because if "emotion" is null that means this is not a emotion clause.
so what I want to ask is that, do you have some experimental results where "emotion" is not included in input text?
for example ['happy','the','thief','was','caught'] => ['the','thief','was','caught'] .
thank you again and have a nice day!