Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 79f2895

Browse files
bug fix : word length
1 parent 93ccb78 commit 79f2895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎transform_data_dnn.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def generate_sentences_batch(self):
4040
labels_batch = []
4141
for i, words in enumerate(self.words_index):
4242
if len(words) < self.skip_window:
43-
return
43+
continue
4444
extend_words = [1] * self.skip_window
4545
extend_words.extend(words)
4646
extend_words.extend([2] * self.skip_window)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /