{"id":18723775,"url":"https://github.com/hscells/trecrun","last_synced_at":"2025-11-11T14:30:17.928Z","repository":{"id":57611789,"uuid":"118712475","full_name":"hscells/trecrun","owner":"hscells","description":"Helper functions for dealing with run files produced by trec_eval","archived":false,"fork":false,"pushed_at":"2018-01-24T04:44:19.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-28T12:43:17.635Z","etag":null,"topics":["go","golang","run","trec","trec-eval"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/hscells/trecrun","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hscells.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-24T04:36:47.000Z","updated_at":"2021-07-13T11:45:52.000Z","dependencies_parsed_at":"2022-08-27T09:50:19.232Z","dependency_job_id":null,"html_url":"https://github.com/hscells/trecrun","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Ftrecrun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Ftrecrun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Ftrecrun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hscells%2Ftrecrun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hscells","download_url":"https://codeload.github.com/hscells/trecrun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239590615,"owners_count":19664524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","run","trec","trec-eval"],"created_at":"2024-11-07T13:51:35.297Z","updated_at":"2025-11-11T14:30:17.885Z","avatar_url":"https://github.com/hscells.png","language":"Go","readme":"# trecrun\n\n[![GoDoc](https://godoc.org/github.com/hscells/trecrun?status.svg)](https://godoc.org/github.com/hscells/trecrun)\n[![Go Report Card](https://goreportcard.com/badge/github.com/hscells/trecrun)](https://goreportcard.com/report/github.com/hscells/trecrun)\n\n```\ngo get github.com/hscells/trecrun\n```\n\ntrecrun deals with the deserialization of output from trec_eval-style run files. This package is inspired by\nthe companion go library https://github.com/TimothyJones/trecresults.\n\n## Usage\n\n```go\nrf, err := trecrun.RunsFromReader(f)\nif err != nil {\n    log.Fatal(err)\n}\n\n// p@5 for topic 1.\nfmt.Println(rf.Runs[1].Measurement[\"P_5\"])\n\n// p@5 for all.\nfmt.Println(rf.Measurement[\"P_5\"])\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhscells%2Ftrecrun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhscells%2Ftrecrun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhscells%2Ftrecrun/lists"}