Improve readability
Change-Id: Ia0f9f4c051b6548af17404310fbe5be8b0339834
diff --git a/src/dereko2vec.c b/src/dereko2vec.c
index 9578f1b..48b4480 100644
--- a/src/dereko2vec.c
+++ b/src/dereko2vec.c
@@ -1411,7 +1411,7 @@
for (c = 0; c < layer1_size; c++)
neu1e[c] = 0;
// HIERARCHICAL SOFTMAX
- if (hs)
+ if (hs) {
for (d = 0; d < vocab[word].codelen; d++) {
f = 0;
l2 = vocab[word].point[d] * window_layer_size;
@@ -1440,8 +1440,9 @@
for (c = 0; c < layer1_size; c++)
capParam(syn1, c + l2 + window_offset);
}
+ }
// NEGATIVE SAMPLING
- if (negative > 0)
+ if (negative > 0) {
for (d = 0; d < negative + 1; d++) {
if (d == 0) {
target = word;
@@ -1574,6 +1575,7 @@
capParam(syn1nce_window,
c + l2 + window_offset);
}
+ }
// Learn weights input -> hidden
for (c = 0; c < layer1_size; c++) {
syn0[c + l1] += neu1e[c];