Chenxi Whitehouse
commited on
Commit
•
c4a60f3
1
Parent(s):
3f1877e
update src
Browse files
README.md
CHANGED
@@ -121,7 +121,7 @@ The result for dev and the test set below. We recommend using 0.25 as cut-off sc
|
|
121 |
| Model | Split | Q only | Q + A | Veracity @ 0.2 | @ 0.25 | @ 0.3 |
|
122 |
|-------------------|-------|--------|-------|----------------|--------|-------|
|
123 |
| AVeriTeC-BLOOM-7b | dev | 0.24 | 0.19 | 0.19 | 0.09 | 0.05 |
|
124 |
-
| AVeriTeC-BLOOM-7b | test |
|
125 |
|
126 |
## Citation
|
127 |
If you find AVeriTeC useful for your research and applications, please cite us using this BibTeX:
|
|
|
121 |
| Model | Split | Q only | Q + A | Veracity @ 0.2 | @ 0.25 | @ 0.3 |
|
122 |
|-------------------|-------|--------|-------|----------------|--------|-------|
|
123 |
| AVeriTeC-BLOOM-7b | dev | 0.24 | 0.19 | 0.19 | 0.09 | 0.05 |
|
124 |
+
| AVeriTeC-BLOOM-7b | test | 0.25 | 0.18 | 0.18 | 0.11 | 0.06 |
|
125 |
|
126 |
## Citation
|
127 |
If you find AVeriTeC useful for your research and applications, please cite us using this BibTeX:
|
src/prediction/evaluate_veracity.py
CHANGED
@@ -264,7 +264,7 @@ if __name__ == "__main__":
|
|
264 |
parser.add_argument(
|
265 |
"-i",
|
266 |
"--prediction_file",
|
267 |
-
default="data_store/
|
268 |
help="Json file with claim, evidence, and veracity prediction.",
|
269 |
)
|
270 |
parser.add_argument(
|
|
|
264 |
parser.add_argument(
|
265 |
"-i",
|
266 |
"--prediction_file",
|
267 |
+
default="data_store/dev_veracity_prediction.json",
|
268 |
help="Json file with claim, evidence, and veracity prediction.",
|
269 |
)
|
270 |
parser.add_argument(
|
src/prediction/veracity_prediction.py
CHANGED
@@ -26,7 +26,7 @@ class SequenceClassificationDataLoader(pl.LightningDataModule):
|
|
26 |
def tokenize_strings(
|
27 |
self,
|
28 |
source_sentences,
|
29 |
-
max_length=
|
30 |
pad_to_max_length=False,
|
31 |
return_tensors="pt",
|
32 |
):
|
@@ -72,7 +72,7 @@ if __name__ == "__main__":
|
|
72 |
parser.add_argument(
|
73 |
"-o",
|
74 |
"--output_file",
|
75 |
-
default="data_store/
|
76 |
help="Json file with the veracity predictions.",
|
77 |
)
|
78 |
parser.add_argument(
|
|
|
26 |
def tokenize_strings(
|
27 |
self,
|
28 |
source_sentences,
|
29 |
+
max_length=400,
|
30 |
pad_to_max_length=False,
|
31 |
return_tensors="pt",
|
32 |
):
|
|
|
72 |
parser.add_argument(
|
73 |
"-o",
|
74 |
"--output_file",
|
75 |
+
default="data_store/dev_veracity_prediction.json",
|
76 |
help="Json file with the veracity predictions.",
|
77 |
)
|
78 |
parser.add_argument(
|