Skip to content

Commit

Permalink
lang is unused in SeqTM
Browse files Browse the repository at this point in the history
  • Loading branch information
mgraffg committed Aug 23, 2024
1 parent 7df00fb commit c89e88b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dialectid/tests/test_text_repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_subwords():
def test_SeqTM():
"""Test SeqTM class"""

seq = SeqTM(lang='es', subwords=True, voc_size_exponent=13)
seq = SeqTM(language='es', subwords=True, voc_size_exponent=13)
assert seq.language == 'es'
assert seq.voc_size_exponent == 13
_ = [['q:~dia', 'q:s~', 'duro', 'q:s~']]
Expand Down
2 changes: 2 additions & 0 deletions dialectid/text_repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ def __init__(self, language='es',
voc_selection: str='most_common_by_type',
loc: str=None,
subwords: bool=True,
lang=None,
**kwargs):
assert lang is None
if subwords:
assert loc is None
loc = 'qgrams'
Expand Down

0 comments on commit c89e88b

Please sign in to comment.