Address @n1t0 comments.

This commit is contained in:
Nicolas Patry
2020-09-01 22:07:39 +02:00
parent d624645cf3
commit c0798acacf
10 changed files with 74 additions and 167 deletions

View File

@@ -110,13 +110,8 @@ class Unigram(Model):
vocab: ('`optional`) string:
Path to a vocabulary JSON file.
is_spm_file: ('`optional`) bool:
If the file came out of sentencepiece, we need to load it differently
"""
@staticmethod
def __init__(
self, vocab: Optional[str], is_spm_file: Optional[bool],
):
def __init__(self, vocab: Optional[str]):
pass