Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class Japanese(Language):
lang = "ja"
Defaults = JapaneseDefaults
Tokenizer = SudachiTokenizer
def make_doc(self, text):
return self.tokenizer(text)
def pickle_japanese(instance):
return Japanese, tuple()
copy_reg.pickle(Japanese, pickle_japanese)
__all__ = [
'Japanese',
]
def pickle_japanese(instance):
return Japanese, tuple()