Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
muhaochen committed Nov 16, 2017
1 parent 46d6685 commit 245563d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion run/en_de/test_MMTransE_lan_mapping_120k_fk.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test(model, vocab, index, src_lan, tgt_lan, map, score, past_num):
for i in range(len(cand)):
last_i = i
tmp_cand = cand[i]
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand[0] == word):
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand == word):
hit = True
if hit == True:
tmp_score[i] = 1.0
Expand Down
2 changes: 1 addition & 1 deletion run/en_de/test_MMTransE_lan_mapping_15k_fk.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def test(model, vocab, index, src_lan, tgt_lan, map, score, past_num):
for i in range(len(cand)):
last_i = i
tmp_cand = cand[i]
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand[0] == word):
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand == word):
hit = True
if hit == True:
tmp_score[i] = 1.0
Expand Down
2 changes: 1 addition & 1 deletion run/en_de/test_MMTransE_lan_mapping_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test(model, vocab, index, src_lan, tgt_lan, map, score, past_num):
for i in range(len(cand)):
last_i = i
tmp_cand = cand[i]
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand[0] == word):
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand == word):
hit = True
if hit == True:
tmp_score[i] = 1.0
Expand Down
2 changes: 1 addition & 1 deletion run/en_fr/test_MMTransE_lan_mapping_120k_fk.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test(model, vocab, index, src_lan, tgt_lan, map, score, past_num):
for i in range(len(cand)):
last_i = i
tmp_cand = cand[i]
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand[0] == word):
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand == word):
hit = True
if hit == True:
tmp_score[i] = 1.0
Expand Down
2 changes: 1 addition & 1 deletion run/en_fr/test_MMTransE_lan_mapping_15k_fk.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test(model, vocab, index, src_lan, tgt_lan, map, score, past_num):
for i in range(len(cand)):
last_i = i
tmp_cand = cand[i]
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand[0] == word):
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand == word):
hit = True
if hit == True:
tmp_score[i] = 1.0
Expand Down
2 changes: 1 addition & 1 deletion run/en_fr/test_MMTransE_lan_mapping_cn.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test(model, vocab, index, src_lan, tgt_lan, map, score, past_num):
for i in range(len(cand)):
last_i = i
tmp_cand = cand[i]
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand[0] == word):
if hit == False and (seem_hit(tmp_cand, tgt) == True or tmp_cand == word):
hit = True
if hit == True:
tmp_score[i] = 1.0
Expand Down

0 comments on commit 245563d

Please sign in to comment.