Skip to content

Commit

Permalink
fixed bug where reference transcriptions weren't written.
Browse files Browse the repository at this point in the history
  • Loading branch information
oadams committed Nov 13, 2019
1 parent 0cf1d4d commit da67e98
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.md
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [0.4.1] - 2019-11-13

- Bugfix for an assertion that checked for equality of floating points.
- Bugfix where reference transcription wasn't written.

## [0.4.0] - 2019-08-31

Expand Down
2 changes: 1 addition & 1 deletion persephone/model.py
Expand Up @@ -421,7 +421,7 @@ def train(self, *, early_stopping_steps: int = 10, min_epochs: int = 30,
"w", encoding=ENCODING) as hyps_f:
for hyp in hyps:
print(" ".join(hyp), file=hyps_f)
if epoch == 0:
if epoch == 1:
with open(os.path.join(hyps_dir, "refs"), "w",
encoding=ENCODING) as refs_f:
for ref in refs:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
@@ -1,5 +1,5 @@
[tox]
envlist=py35,py36
envlist=py35,py36,py37
[testenv]
deps=
-r{toxinidir}/test_requirements.txt
Expand Down

0 comments on commit da67e98

Please sign in to comment.