Skip to content

Commit

Permalink
pull analysis file from short letter and rm file checked in by accident
Browse files Browse the repository at this point in the history
  • Loading branch information
leokim-l committed Sep 5, 2024
1 parent 2913dc7 commit ef2e9c2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/malco/analysis/check_shelved_cache.py

This file was deleted.

19 changes: 19 additions & 0 deletions src/malco/analysis/count_grounding_failures.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Quick check how often the grounding failed
import pandas as pd
mfile = "outputdir_all_2024_07_04/en/results.tsv"

df = pd.read_csv(
mfile, sep="\t" #, header=None, names=["description", "term", "label"]
)

terms = df["term"]
counter = 0
grounded = 0
for term in terms:
if term.startswith("MONDO"):
grounded += 1
else:
counter += 1

print(counter)
print(grounded)

0 comments on commit ef2e9c2

Please sign in to comment.