Skip to content

Commit bd5c719

Browse files
committed
Remove content_type parameter from MemoryText constructor
1 parent 0a86fce commit bd5c719

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

machine/corpora/paratext_backup_terms_corpus.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,5 @@ def __init__(self, filename: StrPath, term_categories: Sequence[str], use_term_g
3232
TextRow(text_id, key_term.id, key_term.renderings, content_type=TextRowContentType.WORD)
3333
for key_term in key_terms
3434
],
35-
content_type=TextRowContentType.WORD,
3635
)
3736
self._add_text(text)

tests/translation/huggingface/test_hugging_face_nmt_model_trainer.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def test_update_tokenizer_missing_char() -> None:
115115
MemoryText(
116116
"terms",
117117
[TextRow("terms", 3, ["telephone"], content_type=TextRowContentType.WORD)],
118-
content_type=TextRowContentType.WORD,
119118
),
120119
]
121120
)
@@ -132,7 +131,6 @@ def test_update_tokenizer_missing_char() -> None:
132131
MemoryText(
133132
"terms",
134133
[TextRow("terms", 3, ["teléfono"], content_type=TextRowContentType.WORD)],
135-
content_type=TextRowContentType.WORD,
136134
),
137135
]
138136
)

0 commit comments

Comments
 (0)