Skip to content

Commit

Permalink
fixes for #213
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacdonald committed Jun 28, 2023
1 parent 7c931a2 commit 928d97a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class TestAdhocEvaluation extends TestCase {

protected String makeRun(String qids[], String[][] docnos) throws Exception
{
final File tmpFile = Files.createTempFile("/tmp", "tmp.res").toFile();
final File tmpFile = Files.createTempFile("results", "tmp.res").toFile();
final PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(tmpFile)));
int queryIndex = 0;
for(String[] docnosByQ : docnos)
Expand All @@ -64,7 +64,7 @@ protected String makeRun(String qids[], String[][] docnos) throws Exception

protected String makeQrels(String qids[], String[][] rel_docnos) throws Exception
{
final File tmpFile = Files.createTempFile("/tmp", "tmp.qrels").toFile();
final File tmpFile = Files.createTempFile("qrels", "tmp.qrels").toFile();
final PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(tmpFile)));
int queryIndex = 0;
for(String[] docnosByQ : rel_docnos)
Expand Down

0 comments on commit 928d97a

Please sign in to comment.