Spaces:
Sleeping
Sleeping
Commit
·
f751254
1
Parent(s):
98cc462
added NLTK punkt_tab to download list
Browse files
.ipynb_checkpoints/chinesemeteor-checkpoint.py
CHANGED
|
@@ -29,6 +29,7 @@ import re
|
|
| 29 |
nltk.download("wordnet", quiet=True)
|
| 30 |
nltk.download("omw-1.4", quiet=True)
|
| 31 |
nltk.download("punkt", quiet=True)
|
|
|
|
| 32 |
|
| 33 |
# ------------------------------------------------------------------- #
|
| 34 |
# REAL Chinese WordNet (CwnGraph) Integration
|
|
@@ -128,6 +129,7 @@ class ChineseMETEOR(evaluate.Metric):
|
|
| 128 |
nltk.download("wordnet", quiet=True)
|
| 129 |
nltk.download("omw-1.4", quiet=True)
|
| 130 |
nltk.download("punkt", quiet=True)
|
|
|
|
| 131 |
# CwnGraph auto-downloads on first use
|
| 132 |
|
| 133 |
def _compute(self, predictions: List[str], references: List[str]) -> Dict[str, float]:
|
|
|
|
| 29 |
nltk.download("wordnet", quiet=True)
|
| 30 |
nltk.download("omw-1.4", quiet=True)
|
| 31 |
nltk.download("punkt", quiet=True)
|
| 32 |
+
nltk.download('punkt_tab', quiet=True)
|
| 33 |
|
| 34 |
# ------------------------------------------------------------------- #
|
| 35 |
# REAL Chinese WordNet (CwnGraph) Integration
|
|
|
|
| 129 |
nltk.download("wordnet", quiet=True)
|
| 130 |
nltk.download("omw-1.4", quiet=True)
|
| 131 |
nltk.download("punkt", quiet=True)
|
| 132 |
+
nltk.download('punkt_tab', quiet=True)
|
| 133 |
# CwnGraph auto-downloads on first use
|
| 134 |
|
| 135 |
def _compute(self, predictions: List[str], references: List[str]) -> Dict[str, float]:
|
chinesemeteor.py
CHANGED
|
@@ -29,6 +29,7 @@ import re
|
|
| 29 |
nltk.download("wordnet", quiet=True)
|
| 30 |
nltk.download("omw-1.4", quiet=True)
|
| 31 |
nltk.download("punkt", quiet=True)
|
|
|
|
| 32 |
|
| 33 |
# ------------------------------------------------------------------- #
|
| 34 |
# REAL Chinese WordNet (CwnGraph) Integration
|
|
@@ -128,6 +129,7 @@ class ChineseMETEOR(evaluate.Metric):
|
|
| 128 |
nltk.download("wordnet", quiet=True)
|
| 129 |
nltk.download("omw-1.4", quiet=True)
|
| 130 |
nltk.download("punkt", quiet=True)
|
|
|
|
| 131 |
# CwnGraph auto-downloads on first use
|
| 132 |
|
| 133 |
def _compute(self, predictions: List[str], references: List[str]) -> Dict[str, float]:
|
|
|
|
| 29 |
nltk.download("wordnet", quiet=True)
|
| 30 |
nltk.download("omw-1.4", quiet=True)
|
| 31 |
nltk.download("punkt", quiet=True)
|
| 32 |
+
nltk.download('punkt_tab', quiet=True)
|
| 33 |
|
| 34 |
# ------------------------------------------------------------------- #
|
| 35 |
# REAL Chinese WordNet (CwnGraph) Integration
|
|
|
|
| 129 |
nltk.download("wordnet", quiet=True)
|
| 130 |
nltk.download("omw-1.4", quiet=True)
|
| 131 |
nltk.download("punkt", quiet=True)
|
| 132 |
+
nltk.download('punkt_tab', quiet=True)
|
| 133 |
# CwnGraph auto-downloads on first use
|
| 134 |
|
| 135 |
def _compute(self, predictions: List[str], references: List[str]) -> Dict[str, float]:
|