Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hscells/trecrun

Helper functions for dealing with run files produced by trec_eval
https://github.com/hscells/trecrun

go golang run trec trec-eval

Last synced: 6 days ago
JSON representation

Helper functions for dealing with run files produced by trec_eval

Awesome Lists containing this project

README

        

# trecrun

[![GoDoc](https://godoc.org/github.com/hscells/trecrun?status.svg)](https://godoc.org/github.com/hscells/trecrun)
[![Go Report Card](https://goreportcard.com/badge/github.com/hscells/trecrun)](https://goreportcard.com/report/github.com/hscells/trecrun)

```
go get github.com/hscells/trecrun
```

trecrun deals with the deserialization of output from trec_eval-style run files. This package is inspired by
the companion go library https://github.com/TimothyJones/trecresults.

## Usage

```go
rf, err := trecrun.RunsFromReader(f)
if err != nil {
log.Fatal(err)
}

// p@5 for topic 1.
fmt.Println(rf.Runs[1].Measurement["P_5"])

// p@5 for all.
fmt.Println(rf.Measurement["P_5"])
```