Skip to content

Commit 8bc0127

Browse files
committed
typos
1 parent 3543096 commit 8bc0127

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: yoyodyne/models/expert.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,10 @@ def _generate_data(
461461
dataset: data.Dataset,
462462
index: data.Index,
463463
) -> Iterator[Tuple[List[int], List[int]]]:
464-
"""Helper function to manage data encoding for SED."
464+
"""Helper function to manage data encoding for SED.
465465
466-
We want encodings without BOS or EOS tokens. This encodes only raw
467-
source-target text for the Maxwell library.
466+
We want encodings without padding. This encodes only raw source-target
467+
text for the Maxwell library.
468468
469469
Args:
470470
dataset (data.Dataset): dataset for generating expert vocabulary.

Diff for: yoyodyne/predict.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def predict(
103103
# Beam search.
104104
tsv_writer = csv.writer(sink, delimiter="\t")
105105
for predictions, scores in trainer.predict(model, loader):
106-
predictions = util.pad_tensor_after_eos(predictions)
106+
predictions = util.pad_tensor_after_end(predictions)
107107
# TODO: beam search requires singleton batches and this
108108
# assumes that. Revise if that restriction is ever lifted.
109109
targets = [

0 commit comments

Comments
 (0)