Skip to content

Commit 3df9d96

Browse files
committed
Minimize the diff of data-raw.txt and data.txt
This is so that scores in the postprocessed data.txt entries do not carry extra digits when they are not present in the original data-raw.txt.
1 parent 2480b52 commit 3df9d96

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)