Skip to content

Commit ee9941a

Browse files
authored
Merge pull request #881 from lukhnos/fine-tune-postprocess
Minimize the diff of data-raw.txt and data.txt
2 parents 2480b52 + 3df9d96 commit ee9941a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/Data/curation/compilers/postprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def replace_score_in_lm(lm, reading, value, new_score):
7171
uv, us = unigram
7272
if uv == value:
7373
if type(us) == str:
74-
new_unigrams.append((uv, str(new_score)))
74+
new_unigrams.append((uv, "%.8f" % new_score))
7575
else:
7676
new_unigrams.append((uv, new_score))
7777
has_replacement = True

0 commit comments

Comments
 (0)