Skip to content

Commit

Permalink
oops a test
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Nov 29, 2024
1 parent 73475c8 commit e5b1ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stanza/tests/mwt/test_character_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_train(tmp_path):
doc = CoNLL.conll2doc(input_str=ENG_DEV)
dataloader = DataLoader(doc, 10, model.args, vocab=model.vocab, evaluation=True, expand_unk_vocab=True)
preds = []
for i, batch in enumerate(dataloader):
for i, batch in enumerate(dataloader.to_loader()):
assert i == 0 # there should only be one batch
preds += model.predict(batch, never_decode_unk=True, vocab=dataloader.vocab)
assert len(preds) == 1
Expand Down

0 comments on commit e5b1ae2

Please sign in to comment.