Add TREC Core Track 2018 topics
Fix Trec Topic Reader to read TREC Core Track 2018 topics
@@ -108,6 +108,12 @@ public class TrecTopicReader extends TopicReader {
}
String narrative = sb.toString().trim();
// we got a topic!
+ // this is for core track 2018 fix
+ id = id.replaceAll("</num>", "").trim();
+ title = title.replaceAll("</title>", "");
+ description = description.replaceAll("</desc>", "");
+ narrative = narrative.replaceAll("</narr>", "");
+ // this is for core track 2018 fix
fields.put("title", title);
fields.put("description", description);
fields.put("narrative", narrative);
