gensim.models.Phrases.learn_vocab

static Phrases.learn_vocab(sentences, max_vocab_size, delimiter='_')[source]

Collect unigram/bigram counts from the sentences iterable.