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
While making input vectors for qtext and dtext, what if there is OOV? ?
`def MakeInputs(self, text, train=False):
words = self.get_words(text)
wds, vecs = [], []
for w in words:
if w in self.wv:
vec = dy.inputVector(self.wv[w])
vecs.append(dy.nobackprop(vec))
wds.append(w)
cont_sen = self.biRNN.transduce([self.pad[0]] + vecs + [self.pad[1]])[1:-1]
cont_sen = [dy.esum([v, c]) for v, c in zip(vecs, cont_sen)]
return wds, vecs, cont_sen`
The text was updated successfully, but these errors were encountered:
While making input vectors for qtext and dtext, what if there is OOV? ?
`def MakeInputs(self, text, train=False):
words = self.get_words(text)
wds, vecs = [], []
for w in words:
if w in self.wv:
vec = dy.inputVector(self.wv[w])
vecs.append(dy.nobackprop(vec))
wds.append(w)
The text was updated successfully, but these errors were encountered: