Skip to content

hscells/trecrun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

trecrun

GoDoc Go Report Card

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

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"])

About

Helper functions for dealing with run files produced by trec_eval

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages