Skip to content

Commit

Permalink
replace relink with shutil.copy (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophmluscher authored Jan 10, 2024
1 parent 74d328f commit ad81994
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lm/srilm.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def run(self):
if self.vocab is None:
relink("vocab", self.out_vocab.get_path())
else:
relink(self.vocab.get_path(), self.out_vocab.get_path())
shutil.copy(self.vocab.get_path(), self.out_vocab.get_path())

def compress(self):
"""executes the previously created compression script and relinks the lm from work folder to output folder"""
Expand Down

0 comments on commit ad81994

Please sign in to comment.