Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AToMiC dense validation qrels + topics #2219

Merged
merged 3 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main/java/io/anserini/eval/Qrels.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ public enum Qrels {
MIRACL_V10_TH_DEV("qrels.miracl-v1.0-th-dev.tsv"),
MIRACL_V10_ZH_DEV("qrels.miracl-v1.0-zh-dev.tsv"),
MIRACL_V10_DE_DEV("qrels.miracl-v1.0-de-dev.tsv"),
MIRACL_V10_YO_DEV("qrels.miracl-v1.0-yo-dev.tsv");
MIRACL_V10_YO_DEV("qrels.miracl-v1.0-yo-dev.tsv"),
ATOMIC_VAL_T2I("qrels.atomic.validation.t2i.trec"),
ATOMIC_VAL_I2T("qrels.atomic.validation.i2t.trec");

public final String path;

Expand Down
4 changes: 4 additions & 0 deletions src/main/java/io/anserini/search/topicreader/Topics.java
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,10 @@ public enum Topics {
MIRACL_V10_DE_DEV(TsvStringTopicReader.class, "topics.miracl-v1.0-de-dev.tsv"),
MIRACL_V10_YO_DEV(TsvStringTopicReader.class, "topics.miracl-v1.0-yo-dev.tsv"),

// AToMiC topics
ATOMIC_V021_TEXT_VAL(JsonStringTopicReader.class, "topics.atomic.validation.text.ViT-L-14.laion2b_s32b_b82k.jsonl"),
ATOMIC_V021_IMAGE_VAL(JsonStringTopicReader.class, "topics.atomic.validation.image.ViT-L-14.laion2b_s32b_b82k.jsonl"),

// unused topics
CACM(CacmTopicReader.class, "topics.cacm.txt"),
NTCIR_EN_1(NtcirTopicReader.class, "topics.www1.english.txt"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ public class TopicReaderTest {
public void testIterateThroughAllEnums() {
int cnt = 0;
for (Topics topic : Topics.values()) {
cnt++;
cnt++;

// Verify that we can fetch the TopicReader class given the name of the topic file.
String path = topic.path;
assertEquals(topic.readerClass, TopicReader.getTopicReaderClassByFile(path));
}
assertEquals(359, cnt);
assertEquals(361, cnt);
}

@Test
Expand Down
Loading