Skip to content

Commit

Permalink
Use 'encoders' cache directory instead of 'test' cache directory: eli…
Browse files Browse the repository at this point in the history
…minate duplicate downloads (#2429)
  • Loading branch information
16BitNarwhal committed Mar 28, 2024
1 parent 5d6f3fa commit 5fb697a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public abstract class EncoderInferenceTest {
protected Object[][] longExamples;

protected String getCacheDir() {
File cacheDir = new File(System.getProperty("user.home") + "/.cache/anserini/test");
File cacheDir = new File(System.getProperty("user.home") + "/.cache/anserini/encoders");
if (!cacheDir.exists()) {
cacheDir.mkdir();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class SpladeEncoderTokenizationTest {
};

static private String getCacheDir() {
File cacheDir = new File(System.getProperty("user.home") + "/.cache/anserini/test");
File cacheDir = new File(System.getProperty("user.home") + "/.cache/anserini/encoders");
if (!cacheDir.exists()) {
cacheDir.mkdir();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class UniCoilEncoderTokenizationTest {
};

static private String getCacheDir() {
File cacheDir = new File(System.getProperty("user.home") + "/.cache/anserini/test");
File cacheDir = new File(System.getProperty("user.home") + "/.cache/anserini/encoders");
if (!cacheDir.exists()) {
cacheDir.mkdir();
}
Expand Down

0 comments on commit 5fb697a

Please sign in to comment.