public class QrelUtility extends Object
Constructor and Description |
---|
QrelUtility() |
Modifier and Type | Method and Description |
---|---|
static HMapIV<long[]> |
loadLongQrelsFromTabDelimited(com.google.common.io.InputSupplier<? extends InputStreamReader> qrelInputSupplier) |
static HMapIV<int[]> |
loadQrelsFromTabDelimited(com.google.common.io.InputSupplier<? extends InputStreamReader> qrelInputSupplier) |
static HMapIV<int[]> |
loadQrelsFromXML(com.google.common.io.InputSupplier<? extends InputStream> qrelInputSupplier)
Reads a qrel set in XML format as follows:
<parameters>
<judgment qid="Query_ID" docid="Document_ID" />
</parameters>
|
static HMapIV<long[]> |
parseLongQrelsFromTabDelimited(String qrelPath) |
static HMapIV<int[]> |
parseQrelsFromTabDelimited(String qrelPath) |
static HMapIV<int[]> |
parseQrelsFromXML(String qrelPath) |
public static HMapIV<long[]> loadLongQrelsFromTabDelimited(com.google.common.io.InputSupplier<? extends InputStreamReader> qrelInputSupplier) throws IOException
IOException
public static HMapIV<int[]> loadQrelsFromTabDelimited(com.google.common.io.InputSupplier<? extends InputStreamReader> qrelInputSupplier) throws IOException
IOException
public static HMapIV<int[]> loadQrelsFromXML(com.google.common.io.InputSupplier<? extends InputStream> qrelInputSupplier) throws ParserConfigurationException, SAXException, IOException
qrelInputSupplier
- An input supplier that provides the qrelsParserConfigurationException
SAXException
IOException
public static HMapIV<long[]> parseLongQrelsFromTabDelimited(String qrelPath) throws Exception
Exception
public static HMapIV<int[]> parseQrelsFromTabDelimited(String qrelPath) throws Exception
Exception