def load_vocab(self, vocabf): self.texts = loader.load_askubuntu_texts(vocabf) self.vocab = Vocabulary(self.texts.values(), prune_N=self.c['embprune'], icase=self.c['embicase']) return self.vocab
def load_vocab(self, vocabf): self.texts = loader.load_askubuntu_texts(vocabf) self.vocab = Vocabulary(self.texts.values()) return self.vocab