Skip to content

Commit b00b393

Browse files
committed
fix typo
1 parent 6baaa74 commit b00b393

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

gensim/models/phrases.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@
7575

7676
NEGATIVE_INFINITY = float('-inf')
7777

78-
#: Set of common English prepositions and articles. Tokens from this set
79-
# are "ignored" during phrase detection:
78+
# Set of common English words. Tokens from this set are "ignored" during phrase detection:
8079
# 1) Phrases may not start with these words.
8180
# 2) Phrases may include any number of these words inside.
8281
ENGLISH_COMMON_TERMS = frozenset(
@@ -649,7 +648,7 @@ def add_vocab(self, sentences):
649648
>>>
650649
>>> # Train a phrase detector from a text corpus.
651650
>>> sentences = Text8Corpus(datapath('testcorpus.txt'))
652-
>>> phrases = Phrases(sentences, common_words=ENGLISH_COMMON_TERMS) # train model
651+
>>> phrases = Phrases(sentences, common_terms=ENGLISH_COMMON_TERMS) # train model
653652
>>> assert len(phrases.vocab) == 37
654653
>>>
655654
>>> more_sentences = [

0 commit comments

Comments
 (0)