Skip to content

Commit ba3a309

Browse files
committed
Run local check
1 parent 1534627 commit ba3a309

1 file changed

Lines changed: 3 additions & 23 deletions

File tree

tests/corpora/test_n_parallel_text_corpus.py

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,4 @@
1-
from io import StringIO
2-
from typing import Any, Iterable, Optional
3-
4-
import pandas as pd
5-
from datasets.arrow_dataset import Dataset
6-
7-
from machine.corpora import (
8-
AlignedWordPair,
9-
AlignmentRow,
10-
DictionaryAlignmentCorpus,
11-
DictionaryTextCorpus,
12-
MemoryAlignmentCollection,
13-
MemoryText,
14-
NParallelTextCorpus,
15-
ParallelTextCorpus,
16-
ScriptureRef,
17-
StandardParallelTextCorpus,
18-
TextRow,
19-
TextRowFlags,
20-
)
21-
from machine.scripture import ENGLISH_VERSIFICATION, ORIGINAL_VERSIFICATION, Versification
1+
from machine.corpora import DictionaryTextCorpus, MemoryText, NParallelTextCorpus, TextRow, TextRowFlags
222

233

244
def test_get_rows_zero_corpora() -> None:
@@ -585,9 +565,9 @@ def test_get_rows_three_corpora_same_ref_corpora_of_different_sizes():
585565
assert rows[0].n_refs[1] == [1]
586566

587567

588-
def _text_row(textId: str, rowRef: object, text="", flags=TextRowFlags.SENTENCE_START) -> TextRow:
568+
def _text_row(text_id: str, row_ref: object, text="", flags=TextRowFlags.SENTENCE_START) -> TextRow:
589569

590-
tr = TextRow(textId, rowRef)
570+
tr = TextRow(text_id, row_ref)
591571
tr.segment = [] if len(text) == 0 else text.split()
592572
tr.flags = flags
593573
return tr

0 commit comments

Comments
 (0)