AdeDZY / K-NRM

K-NRM: End-to-End Neural Ad-hoc Ranking with Kernel Pooling
BSD 3-Clause "New" or "Revised" License
201 stars 43 forks source link

About embedding usage #4

Open Alchemist75 opened 6 years ago

Alchemist75 commented 6 years ago

Hello! I'd like to know about the details of embedding usage in this model: should the values in the embedding be set to range (0,1); is it ok if i set the labels of words which didn't appear in the embedding to 0 instead of -1(i believe this is ok according to the implement.) Thanks!

AdeDZY commented 6 years ago

should the values in the embedding be set to range (0,1): -- No. We normalize the embedding in the implementation, so it will automatically convert the values into range [0, 1]

is it ok if i set the labels of words which didn't appear in the embedding to 0 instead of -1 -- Yes!

Alchemist75 commented 6 years ago

OK, thanks so much!