Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MachineLP/TextMatch
/ _gen_model
Method
_gen_model
textmatch/models/text_embedding/bow_sklearn.py:113–114 ·
view source on GitHub ↗
(self, word_list)
Source
from the content-addressed store, hash-verified
111
112
# build tf-idf model
113
def
_gen_model(self, word_list):
114
self._gen_dic(word_list)
115
116
def
_predict(self, words):
117
tf_idf_embedding = self.vectorizer.transform(self._seg_word([words]))
Callers
2
init
Method · 0.95
fit
Method · 0.95
Calls
1
_gen_dic
Method · 0.95
Tested by
no test coverage detected