Skip to content

Commit

Permalink
total_effective_words: int -> long long
Browse files Browse the repository at this point in the history
  • Loading branch information
bm371613 committed Oct 30, 2018
1 parent 8ecb3eb commit 95fc778
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions gensim/models/doc2vec_corpusfile.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def d2v_train_epoch_dbow(model, corpus_file, offset, start_doctag, _cython_vocab

cdef int i, j, document_len
cdef int effective_words = 0
cdef int total_effective_words = 0, total_documents = 0
cdef long long total_words = 0
cdef int total_documents = 0
cdef long long total_effective_words = 0, total_words = 0
cdef int sent_idx, idx_start, idx_end

cdef vector[string] doc_words
Expand Down Expand Up @@ -288,8 +288,8 @@ def d2v_train_epoch_dm(model, corpus_file, offset, start_doctag, _cython_vocab,

cdef int i, j, k, m, document_len
cdef int effective_words = 0
cdef int total_effective_words = 0, total_documents = 0
cdef long long total_words = 0
cdef int total_documents = 0
cdef long long total_effective_words = 0, total_words = 0
cdef int sent_idx, idx_start, idx_end
cdef REAL_t count, inv_count = 1.0

Expand Down Expand Up @@ -437,8 +437,8 @@ def d2v_train_epoch_dm_concat(model, corpus_file, offset, start_doctag, _cython_

cdef int i, j, k, m, n, document_len
cdef int effective_words = 0
cdef int total_effective_words = 0, total_documents = 0
cdef long long total_words = 0
cdef int total_documents = 0
cdef long long total_effective_words = 0, total_words = 0
cdef int sent_idx, idx_start, idx_end

cdef vector[string] doc_words
Expand Down
8 changes: 4 additions & 4 deletions gensim/models/fasttext_corpusfile.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def train_epoch_sg(

cdef int i, j, k
cdef int effective_words = 0, effective_sentences = 0
cdef int total_effective_words = 0, total_sentences = 0
cdef long long total_words = 0
cdef int total_sentences = 0
cdef long long total_effective_words = 0, total_words = 0
cdef int sent_idx, idx_start, idx_end

init_ft_config(&c, model, _alpha, _work, _l1)
Expand Down Expand Up @@ -229,8 +229,8 @@ def train_epoch_cbow(model, corpus_file, offset, _cython_vocab, _cur_epoch, _exp

cdef int i, j, k
cdef int effective_words = 0, effective_sentences = 0
cdef int total_effective_words = 0, total_sentences = 0
cdef long long total_words = 0
cdef int total_sentences = 0
cdef long long total_effective_words = 0, total_words = 0
cdef int sent_idx, idx_start, idx_end

init_ft_config(&c, model, _alpha, _work, _neu1)
Expand Down
8 changes: 4 additions & 4 deletions gensim/models/word2vec_corpusfile.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ def train_epoch_sg(model, corpus_file, offset, _cython_vocab, _cur_epoch, _expec

cdef int i, j, k
cdef int effective_words = 0, effective_sentences = 0
cdef int total_effective_words = 0, total_sentences = 0
cdef long long total_words = 0
cdef int total_sentences = 0
cdef long long total_effective_words = 0, total_words = 0
cdef int sent_idx, idx_start, idx_end

init_w2v_config(&c, model, _alpha, compute_loss, _work)
Expand Down Expand Up @@ -387,8 +387,8 @@ def train_epoch_cbow(model, corpus_file, offset, _cython_vocab, _cur_epoch, _exp

cdef int i, j, k
cdef int effective_words = 0, effective_sentences = 0
cdef int total_effective_words = 0, total_sentences = 0
cdef long long total_words = 0
cdef int total_sentences = 0
cdef long long total_effective_words = 0, total_words = 0
cdef int sent_idx, idx_start, idx_end

init_w2v_config(&c, model, _alpha, compute_loss, _work, _neu1)
Expand Down

0 comments on commit 95fc778

Please sign in to comment.