Jon Gauthier commited on
Commit ·
aab1635
1
Parent(s): 5c02ba4
restructure to accord with HF Hub expectations, I think
Browse files- syntaxgym/prediction.py → prediction.py +0 -0
- syntaxgym/syntaxgym.py → syntaxgym.py +1 -1
- syntaxgym/__init__.py +0 -0
- test.py +3 -3
syntaxgym/prediction.py → prediction.py
RENAMED
|
File without changes
|
syntaxgym/syntaxgym.py → syntaxgym.py
RENAMED
|
@@ -13,7 +13,7 @@ from typing import List
|
|
| 13 |
|
| 14 |
import datasets
|
| 15 |
|
| 16 |
-
from
|
| 17 |
|
| 18 |
|
| 19 |
_CITATION = """
|
|
|
|
| 13 |
|
| 14 |
import datasets
|
| 15 |
|
| 16 |
+
from .prediction import Prediction
|
| 17 |
|
| 18 |
|
| 19 |
_CITATION = """
|
syntaxgym/__init__.py
DELETED
|
File without changes
|
test.py
CHANGED
|
@@ -3,8 +3,8 @@ import transformers
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
|
| 6 |
-
dataset = datasets.load_dataset("syntaxgym", "mvrr_mod")
|
| 7 |
-
metric = datasets.load_metric("syntaxgym", "mvrr_mod")
|
| 8 |
|
| 9 |
tokenizer = transformers.AutoTokenizer.from_pretrained("gpt2")
|
| 10 |
# DEV
|
|
@@ -26,5 +26,5 @@ for item in dataset["test"]:
|
|
| 26 |
print(model(tokenized["input_ids"]))
|
| 27 |
|
| 28 |
# TODO eval
|
| 29 |
-
|
| 30 |
break
|
|
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
|
| 6 |
+
dataset = datasets.load_dataset("syntaxgym.py", "mvrr_mod")
|
| 7 |
+
metric = datasets.load_metric("syntaxgym.py", "mvrr_mod")
|
| 8 |
|
| 9 |
tokenizer = transformers.AutoTokenizer.from_pretrained("gpt2")
|
| 10 |
# DEV
|
|
|
|
| 26 |
print(model(tokenized["input_ids"]))
|
| 27 |
|
| 28 |
# TODO eval
|
| 29 |
+
|
| 30 |
break
|