Skip to content

Commit

Permalink
Regenerated wikidata-tekGen Vicuna-13B eval metrics V2
Browse files Browse the repository at this point in the history
  • Loading branch information
cenguix committed May 12, 2023
1 parent 21f8788 commit 08c92bd
Show file tree
Hide file tree
Showing 20 changed files with 4,005 additions and 8,340 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/Text2KGBench.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/evaluation/run_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ def main():
if f1 < 1 and len(filtered_system_triples) > 0 and subj_hallucination == 0 and obj_hallucination == 0:
print(f"sent: {sentence}\nf1: {f1}\nsys:{filtered_system_triples}\nground:{gt_triples}\n\n")

eval_metrics = {"id": sent_id, "precision": precision, "recall": recall, "f1": f1,
"onto_conf": ont_conformance, "rel_halluc": rel_hallucination,
"sub_halluc": subj_hallucination, "obj_halluc": obj_hallucination,
eval_metrics = {"id": sent_id, "precision": f"{precision:.2f}" , "recall": f"{recall:.2f}", "f1": f"{f1:.2f}",
"onto_conf": f"{ont_conformance:.2f}", "rel_halluc": f"{rel_hallucination:.2f}",
"sub_halluc": f"{subj_hallucination:.2f}", "obj_halluc": f"{obj_hallucination:.2f}",
"llm_triples": system_triples, "filtered_llm_triples": filtered_system_triples,
"gt_triples": gt_triples, "sent": sentence}
eval_metrics_list.append(eval_metrics)
Expand Down
13 changes: 13 additions & 0 deletions src/evaluation/tekgen_vicuna_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"onto_list" : [
"1_movie", "2_music", "3_sport", "4_book", "5_military", "6_computer", "7_space", "8_politics", "9_nature", "10_culture"
],
"path_patterns": {
"sys": "../../data/wikidata_tekgen/baselines/Vicuna-13B/llm_responses/ont_$$onto$$_llm_responses.jsonl",
"gt":"../../data/wikidata_tekgen/ground_truth/ont_$$onto$$_ground_truth.jsonl",
"selected_ids": "../../data/wikidata_tekgen/manually_verified_sentences/selected_ont_$$onto$$.txt",
"onto": "../../data/wikidata_tekgen/ontologies/$$onto$$_ontology.json",
"output": "../../data/wikidata_tekgen/baselines/Vicuna-13B/eval_metrics/ont_$$onto$$_llm_stats_v2.jsonl"
},
"avg_out_file": "../../data/wikidata_tekgen/baselines/Vicuna-13B/eval_metrics/ont_llm_avg_stats_v2.jsonl"
}
2 changes: 1 addition & 1 deletion src/evaluation/tikgen_vicuna_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"1_movie", "2_music", "3_sport", "4_book", "5_military", "6_computer", "7_space", "8_politics", "9_nature", "10_culture"
],
"path_patterns": {
"sys": "../../data/baselines/vicuna_13B/llm_responses/ont_$$onto$$_llm_responses_v2.jsonl",
"sys": "../../data/baselines/vicuna_13B/llm_responses/ont_$$onto$$_llm_responses.jsonl",
"gt":"../../data/ground_truth/ont_$$onto$$_ground_truth_v1.jsonl",
"selected_ids": "../../data/ground_truth/selected_ids/selected_ont_$$onto$$.txt",
"onto": "../../data/ontology/$$onto$$_ontology.json",
Expand Down

0 comments on commit 08c92bd

Please sign in to comment.