We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be83f44 commit 037abf2Copy full SHA for 037abf2
wikipedia2vec/wikipedia2vec.py
@@ -268,8 +268,8 @@ def train(
268
269
vocab_size = len(self.dictionary)
270
271
- syn0_arr = (np.random.rand(vocab_size * dim_size).astype(np.float32) - 0.5) / dim_size
272
- syn1_arr = np.zeros(vocab_size * dim_size, dtype=np.float32)
+ syn0_arr = (np.random.rand(vocab_size, dim_size).astype(np.float32) - 0.5) / dim_size
+ syn1_arr = np.zeros((vocab_size, dim_size), dtype=np.float32)
273
274
init_args = (
275
dump_db,
@@ -533,7 +533,6 @@ def _init_worker(
533
sent_char_positions=cython.int[:],
534
sent_token_positions=cython.int[:],
535
neighbor_entity_indices=cython.int[:],
536
- link_char_flags=cython.int[:],
537
)
538
def _train_page(
539
arg: Tuple[int, str, float],
0 commit comments