Update metrics/bleu.py
Browse files- metrics/bleu.py +1 -1
metrics/bleu.py
CHANGED
|
@@ -117,6 +117,6 @@ def compute_bleu(reference_corpus, translation_corpus, max_order=4, smooth=False
|
|
| 117 |
}
|
| 118 |
|
| 119 |
|
| 120 |
-
def
|
| 121 |
# TODO: Tokenize properly
|
| 122 |
return text.split()
|
|
|
|
| 117 |
}
|
| 118 |
|
| 119 |
|
| 120 |
+
def postprocess_text(text):
|
| 121 |
# TODO: Tokenize properly
|
| 122 |
return text.split()
|