jtreceval

A Java wrapper around the binaries for NIST's trec_eval (https://github.com/usnistgov/trec_eval) on various platforms. The trec_eval binaries are included in the jar file, so the jar is easy to use on a number of platforms without compiling.

Лицензия

Лицензия

Группа

Группа

uk.ac.gla.dcs.terrierteam
Идентификатор

Идентификатор

jtreceval
Последняя версия

Последняя версия

0.0.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

jtreceval
A Java wrapper around the binaries for NIST's trec_eval (https://github.com/usnistgov/trec_eval) on various platforms. The trec_eval binaries are included in the jar file, so the jar is easy to use on a number of platforms without compiling.
Ссылка на сайт

Ссылка на сайт

https://github.com/terrierteam/jtreceval
Система контроля версий

Система контроля версий

https://github.com/terrierteam/jtreceval

Скачать jtreceval

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/uk.ac.gla.dcs.terrierteam/jtreceval/ -->
<dependency>
    <groupId>uk.ac.gla.dcs.terrierteam</groupId>
    <artifactId>jtreceval</artifactId>
    <version>0.0.5</version>
</dependency>
// https://jarcasting.com/artifacts/uk.ac.gla.dcs.terrierteam/jtreceval/
implementation 'uk.ac.gla.dcs.terrierteam:jtreceval:0.0.5'
// https://jarcasting.com/artifacts/uk.ac.gla.dcs.terrierteam/jtreceval/
implementation ("uk.ac.gla.dcs.terrierteam:jtreceval:0.0.5")
'uk.ac.gla.dcs.terrierteam:jtreceval:jar:0.0.5'
<dependency org="uk.ac.gla.dcs.terrierteam" name="jtreceval" rev="0.0.5">
  <artifact name="jtreceval" type="jar" />
</dependency>
@Grapes(
@Grab(group='uk.ac.gla.dcs.terrierteam', module='jtreceval', version='0.0.5')
)
libraryDependencies += "uk.ac.gla.dcs.terrierteam" % "jtreceval" % "0.0.5"
[uk.ac.gla.dcs.terrierteam/jtreceval "0.0.5"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
commons-io : commons-io jar 2.4

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.8.1

Модули Проекта

Данный проект не имеет модулей.

Build Status Maven Central

jtreceval

A Java wrapper around the binaries for NIST's trec_eval (https://github.com/usnistgov/trec_eval) on various platforms. The trec_eval binaries are included in the jar file, so the jar is easy to use on a number of platforms without compiling.

Currently, we have the binaries for the following operating systems:

  • Linux, Intel 32bit, 64bit
  • Mac OS X, Intel 64bit
  • Windows, Intel 32bit (and hence 64bit)

Dependency

Hosted on Maven Central:

<dependency>
  <groupId>uk.ac.gla.dcs.terrierteam</groupId>
  <artifactId>jtreceval</artifactId>
  <version>x.x.x</version>
</dependency>

Compiling

mvn package

Java 1.7 is the minimum requirement. The Maven pom file depends only on Apache Commons-IO, and Junit (for testing only).

Usage from the command-line

Essentially, executing the jar file using java -jar should have the same effect as executing trec_eval directly on your platform:

java -jar target/jtreceval-0.0.2-SNAPSHOT-jar-with-dependencies.jar

Example:

java -jar target/jtreceval-0.0.2-SNAPSHOT-jar-with-dependencies.jar qrels myrun.res

Usage from Java

String qrels = "/path/to/qrels";
String res = "/path/to/run";
trec_eval te = new trec_eval();
String[][] output = te.runAndGetOutput(new String[]{"-q", qrels, res});
//1st dimension is line of output, 2nd dim is [measure, query, value]

Known Issues/Possible Improvements

  1. Currently the Cywgin trec_eval binary is incorrectly detected as a virus by Windows Defender.
  2. A more reasonable Java API that is easy to use.

Credits

Developed by Craig Macdonald, University of Glasgow.

The repository contains compilations of NIST's trec_eval for various platforms.

Версии библиотеки

Версия
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1