Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
1710763616 committed Oct 18, 2022
1 parent 17f8297 commit c33cd6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion mitigating_bias/test/BERTScore/test_bert_score.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
from sys import path
path.append('test/BERTScore/bert_score')
path.append('BERTScore/bert_score')
from scorer import BERTScorer


Expand Down
10 changes: 5 additions & 5 deletions mitigating_bias/test/cal_debias_scores.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
from sys import path
from prettytable import PrettyTable
import argparse
path.append('test/BERTScore')
path.append('test/BLEURT')
path.append('test/BARTScore')
path.append('BERTScore')
path.append('BLEURT')
path.append('BARTScore')


from test_bert_score import cal_bert_score
from test_bleurt import cal_bleurt
from test_bart_score import cal_bart_score


with open('test/test_data/hyps.txt') as f:
with open('test_data/hyps.txt') as f:
cands = [line.strip() for line in f]

with open('test/test_data/refs.txt') as f:
with open('test_data/refs.txt') as f:
refs = [line.strip() for line in f]


Expand Down

0 comments on commit c33cd6f

Please sign in to comment.