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

Method predict

textmatch/models/text_embedding/bow_sklearn.py:122–124  ·  view source on GitHub ↗
(self, words)

Source from the content-addressed store, hash-verified

120 return tf_idf_embedding[np.newaxis, :].astype(float)
121
122 def predict(self, words):
123 pre = self._normalize( self._predict(words) )
124 return np.dot( self.words_list_pre[:], pre[0] )
125

Callers

nothing calls this directly

Calls 2

_predictMethod · 0.95
_normalizeMethod · 0.45

Tested by

no test coverage detected