Update SIMORD.py
Browse files
SIMORD.py
CHANGED
|
@@ -24,13 +24,6 @@ import re
|
|
| 24 |
from typing import Dict, Iterable, List, Tuple
|
| 25 |
|
| 26 |
import datasets
|
| 27 |
-
import nltk
|
| 28 |
-
|
| 29 |
-
# Ensure sentence tokenizer needed by mediqa-oe code is available
|
| 30 |
-
try:
|
| 31 |
-
nltk.data.find("tokenizers/punkt_tab")
|
| 32 |
-
except LookupError:
|
| 33 |
-
nltk.download("punkt_tab")
|
| 34 |
|
| 35 |
# ---- Import the exact merge function from your repo ----
|
| 36 |
# (Relies on your local mediqa-oe being importable)
|
|
|
|
| 24 |
from typing import Dict, Iterable, List, Tuple
|
| 25 |
|
| 26 |
import datasets
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# ---- Import the exact merge function from your repo ----
|
| 29 |
# (Relies on your local mediqa-oe being importable)
|