From 652113a7e75b5b200e3729132ae93852da71fd5e Mon Sep 17 00:00:00 2001 From: Andrey Kutuzov Date: Tue, 19 Dec 2017 19:07:23 +0100 Subject: [PATCH] Description of sg parameter in FastText mixed up It was erroneously stated that when sg=1, CBOW is used, otherwise skip-gram is used. In fact, it is vice versa (quite logically, as sg=SkipGram). Thus, the description should be fixed. --- gensim/models/fasttext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gensim/models/fasttext.py b/gensim/models/fasttext.py index d7e8598b8d..2210c4e0ed 100644 --- a/gensim/models/fasttext.py +++ b/gensim/models/fasttext.py @@ -188,7 +188,7 @@ def __init__( If you don't supply `sentences`, the model is left uninitialized -- use if you plan to initialize it in some other way. sg : int {1, 0} - Defines the training algorithm. If 1, CBOW is used, otherwise, skip-gram is employed. + Defines the training algorithm. If 1, skip-gram is used, otherwise, CBOW is employed. size : int Dimensionality of the feature vectors. window : int