MCPcopy Index your code
hub / github.com/MachineLP/TextMatch / predict

Method predict

textmatch/core/intent_classifier.py:35–41  ·  view source on GitHub ↗
(self, words, word_id=None)

Source from the content-addressed store, hash-verified

33
34
35 def predict(self, words, word_id=None):
36 emb = self.predict_emb( words )
37 words_emb=[]
38 for per_v in emb.values():
39 words_emb.extend( per_v )
40 words_emb = np.array(words_emb)
41 return self.predict_cls( words_emb )
42
43
44

Callers

nothing calls this directly

Calls 2

predict_embMethod · 0.95
predict_clsMethod · 0.95

Tested by

no test coverage detected