Datasets:
aapot
commited on
Commit
•
e49e497
1
Parent(s):
5a2a405
Remove local kenlm path
Browse files- calculate_perplexity.py +1 -1
calculate_perplexity.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import datasets
|
2 |
import kenlm
|
3 |
|
4 |
-
kenlm_model = kenlm.Model("
|
5 |
|
6 |
def get_perplexity(example):
|
7 |
"""Get perplexity of text field."""
|
|
|
1 |
import datasets
|
2 |
import kenlm
|
3 |
|
4 |
+
kenlm_model = kenlm.Model("PATH_TO_YOUR_KENLM")
|
5 |
|
6 |
def get_perplexity(example):
|
7 |
"""Get perplexity of text field."""
|