Skip to content

Commit

Permalink
Merge pull request #61 from JHU-CLSP/mainaug15
Browse files Browse the repository at this point in the history
Refactoring code and more tests
  • Loading branch information
Daniel Khashabi authored Sep 4, 2023
2 parents 9842ba5 + 3dbd141 commit 13c4530
Show file tree
Hide file tree
Showing 10 changed files with 1,022 additions and 967 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ jobs:
echo 'Upload the tasks'
python 3.upload_tasks.py
echo 'run evaluation'
python evaluation.py
python 4.run_evaluation.py
3 changes: 3 additions & 0 deletions src/3.upload_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def __init__(self, batch_name, project_name, template, csv):
temp = ''
csvpath = ''
dir_path = os.path.join(root, dir)
if "batch-" in dir:
# skip because this is just a directory to store the results of human evaluation
continue
for file in os.listdir(dir_path):
if file.endswith('.html'):
temp = os.path.join(dir_path, file)
Expand Down
1 change: 1 addition & 0 deletions src/4.get_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from collections import Counter
import chardet

# TODO: this should be merged into evaluation file

def update_input_type_counts(html_file, input_names, input_type_counts):
with open(html_file, 'rb') as f:
Expand Down
460 changes: 460 additions & 0 deletions src/4.run_evaluation.py

Large diffs are not rendered by default.

Loading

0 comments on commit 13c4530

Please sign in to comment.