87326c26653a01b52741f1d98b28fbae65bd5580,scattertext/representations/Word2VecFromParsedCorpus.py,Word2VecFromParsedCorpusBigrams,_scan_and_build_vocab,#Word2VecFromParsedCorpusBigrams#,54
Before Change
class Word2VecFromParsedCorpusBigrams(Word2VecFromParsedCorpus):
def _scan_and_build_vocab(self):
bigram_transformer = Phrases(self._get_line_sentences_for_word2vec())
self.model.scan_vocab(bigram_transformer[self._get_line_sentences_for_word2vec()])
self.model.build_vocab(bigram_transformer[self._get_line_sentences_for_word2vec()])
After Change
def _scan_and_build_vocab(self):
from gensim.models import Phrases
bigram_transformer = Phrases(CorpusAdapterForGensim.get_sentences(self.corpus))
self.model.scan_vocab(bigram_transformer[CorpusAdapterForGensim.get_sentences(self.corpus)])
self.model.build_vocab(bigram_transformer[CorpusAdapterForGensim.get_sentences(self.corpus)])
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: JasonKessler/scattertext
Commit Name: 87326c26653a01b52741f1d98b28fbae65bd5580
Time: 2017-08-09
Author: jason.kessler@gmail.com
File Name: scattertext/representations/Word2VecFromParsedCorpus.py
Class Name: Word2VecFromParsedCorpusBigrams
Method Name: _scan_and_build_vocab
Project Name: JasonKessler/scattertext
Commit Name: 87326c26653a01b52741f1d98b28fbae65bd5580
Time: 2017-08-09
Author: jason.kessler@gmail.com
File Name: scattertext/representations/Word2VecFromParsedCorpus.py
Class Name: Word2VecFromParsedCorpus
Method Name: _scan_and_build_vocab
Project Name: JasonKessler/scattertext
Commit Name: 87326c26653a01b52741f1d98b28fbae65bd5580
Time: 2017-08-09
Author: jason.kessler@gmail.com
File Name: scattertext/representations/Word2VecFromParsedCorpus.py
Class Name: Word2VecFromParsedCorpus
Method Name: train