Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hscells/trecrun
- Owner: hscells
- License: mit
- Created: 2018-01-24T04:36:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-24T04:44:19.000Z (almost 7 years ago)
- Last Synced: 2024-11-07T13:57:45.197Z (about 2 months ago)
- Topics: go, golang, run, trec, trec-eval
- Language: Go
- Homepage: https://godoc.org/github.com/hscells/trecrun
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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"])
```