Skip to content

Commit

Permalink
Fix some bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
RowitZou committed Jul 1, 2019
1 parent 17b97d8 commit 4132abd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def read_instance_with_gaz(input_file, word_dict, char_alphabet, word_alphabet,
return instence_texts, instence_Ids


def build_pretrain_embedding(embedding_path, word_alphabet, embedd_dim=50, norm=True):
def build_pretrain_embedding(embedding_path, word_alphabet, norm=True, embedd_dim=50):

def norm2one(vec):
root_sum_square = np.sqrt(np.sum(np.square(vec)))
Expand Down

0 comments on commit 4132abd

Please sign in to comment.