Skip to content

Commit da67e98

Browse files
committed
fixed bug where reference transcriptions weren't written.
1 parent 0cf1d4d commit da67e98

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99
## [0.4.1] - 2019-11-13
1010

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

1314
## [0.4.0] - 2019-08-31
1415

persephone/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def train(self, *, early_stopping_steps: int = 10, min_epochs: int = 30,
421421
"w", encoding=ENCODING) as hyps_f:
422422
for hyp in hyps:
423423
print(" ".join(hyp), file=hyps_f)
424-
if epoch == 0:
424+
if epoch == 1:
425425
with open(os.path.join(hyps_dir, "refs"), "w",
426426
encoding=ENCODING) as refs_f:
427427
for ref in refs:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=py35,py36
2+
envlist=py35,py36,py37
33
[testenv]
44
deps=
55
-r{toxinidir}/test_requirements.txt

0 commit comments

Comments
 (0)