(self, words_list=None, update=True, del_stopword=cfg.emb.DEL_STOPWORD)
| 68 | |
| 69 | |
| 70 | def init(self, words_list=None, update=True, del_stopword=cfg.emb.DEL_STOPWORD): |
| 71 | if words_list!=None: |
| 72 | self.words_list_pre = [] |
| 73 | for words in words_list: |
| 74 | self.words_list_pre.append( self.w2v_model._predict(words, del_stopword)[0] ) |
| 75 | self.words_list_pre = self._normalize(self.words_list_pre) |
| 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]] |
nothing calls this directly
no test coverage detected