init
Browse files
experiments/baseline_relbert.py
CHANGED
@@ -20,7 +20,7 @@ for lm in ['base', 'large']:
|
|
20 |
os.makedirs(f"results/relbert/relbert-roberta-{lm}", exist_ok=True)
|
21 |
scorer = None
|
22 |
for d in data:
|
23 |
-
ppl_file = f"
|
24 |
anchor_embeddings = [(a, b) for a, b in d['prototypical_examples']]
|
25 |
option_embeddings = [(x, y) for x, y in d['pairs']]
|
26 |
|
|
|
20 |
os.makedirs(f"results/relbert/relbert-roberta-{lm}", exist_ok=True)
|
21 |
scorer = None
|
22 |
for d in data:
|
23 |
+
ppl_file = f"results/relbert/relbert-roberta-{lm}/ppl.{d['relation_type'].replace(' ', '_').replace('/', '__')}.jsonl"
|
24 |
anchor_embeddings = [(a, b) for a, b in d['prototypical_examples']]
|
25 |
option_embeddings = [(x, y) for x, y in d['pairs']]
|
26 |
|