MCPcopy Create free account
hub / github.com/MachineLP/TextMatch / predict

Method predict

textmatch/models/text_embedding/w2v.py:78–81  ·  view source on GitHub ↗
(self, words, del_stopword=cfg.emb.DEL_STOPWORD)

Source from the content-addressed store, hash-verified

76 return self
77
78 def predict(self, words, del_stopword=cfg.emb.DEL_STOPWORD):
79 pre = [self.w2v_model._predict(words, del_stopword)[0]]
80 pre = self._normalize(pre)
81 return np.dot( self.words_list_pre[:], pre[0] )
82

Callers

nothing calls this directly

Calls 2

_predictMethod · 0.45
_normalizeMethod · 0.45

Tested by

no test coverage detected