Update rouge_ru.py
Browse files- rouge_ru.py +1 -1
rouge_ru.py
CHANGED
@@ -103,7 +103,7 @@ def tokenize_normalize_ru(
|
|
103 |
class Tokenizer:
|
104 |
"""Helper class to wrap a callable into a class with a `tokenize` method as used by rouge-score."""
|
105 |
|
106 |
-
def __init__(self, tokenizer_func, word_normalizer_foo=None, language="russian"):
|
107 |
self.tokenizer_func = tokenizer_func
|
108 |
self.word_normalizer_foo = word_normalizer_foo
|
109 |
if self.word_normalizer_foo is None:
|
|
|
103 |
class Tokenizer:
|
104 |
"""Helper class to wrap a callable into a class with a `tokenize` method as used by rouge-score."""
|
105 |
|
106 |
+
def __init__(self, tokenizer_func=tokenize_normalize_ru, word_normalizer_foo=None, language="russian"):
|
107 |
self.tokenizer_func = tokenizer_func
|
108 |
self.word_normalizer_foo = word_normalizer_foo
|
109 |
if self.word_normalizer_foo is None:
|