Documentation
¶
Overview ¶
Package groove is a query analysis and processing pipeline framework.
Index ¶
- type PipelineQuery
- func (gq *PipelineQuery) Name() string
- func (gq *PipelineQuery) Original() cqr.CommonQueryRepresentation
- func (gq *PipelineQuery) Processed() cqr.CommonQueryRepresentation
- func (gq *PipelineQuery) SetProcessed(q cqr.CommonQueryRepresentation) PipelineQuery
- func (gq *PipelineQuery) SetTransformed(q func() cqr.CommonQueryRepresentation) PipelineQuery
- func (gq *PipelineQuery) Topic() int64
- func (gq *PipelineQuery) Transformed() cqr.CommonQueryRepresentation
- type PipelineResult
- type QueryResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PipelineQuery ¶
type PipelineQuery struct {
// contains filtered or unexported fields
}
PipelineQuery stores information about a query before it is measured, analysed, or executed.
func NewPipelineQuery ¶
func NewPipelineQuery(name string, topic int64, original cqr.CommonQueryRepresentation, params ...func(*PipelineQuery)) *PipelineQuery
NewPipelineQuery creates a new groove pipeline query.
func (*PipelineQuery) Original ¶
func (gq *PipelineQuery) Original() cqr.CommonQueryRepresentation
Original is the initial query before preprocessing or transformation.
func (*PipelineQuery) Processed ¶
func (gq *PipelineQuery) Processed() cqr.CommonQueryRepresentation
Processed gets the processed variation of the query.
func (*PipelineQuery) SetProcessed ¶
func (gq *PipelineQuery) SetProcessed(q cqr.CommonQueryRepresentation) PipelineQuery
SetProcessed initiates the processed variation of the query.
func (*PipelineQuery) SetTransformed ¶
func (gq *PipelineQuery) SetTransformed(q func() cqr.CommonQueryRepresentation) PipelineQuery
SetTransformed initiates the transformed variation of the query.
func (*PipelineQuery) Topic ¶
func (gq *PipelineQuery) Topic() int64
Topic is the topic of the query for use in trec runs.
func (*PipelineQuery) Transformed ¶
func (gq *PipelineQuery) Transformed() cqr.CommonQueryRepresentation
Transformed gets the transformed variation of the query.
type PipelineResult ¶
type PipelineResult struct {
Measurements []string
Transformations []QueryResult
TrecResults *trecresults.ResultList
}
PipelineResult is the output of a groove pipeline.
type QueryResult ¶
type QueryResult struct {
Name string
Transformation cqr.CommonQueryRepresentation
}
QueryResult is the result of a transformation.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package analysis provides measurements and analysis tools for queries.
|
Package analysis provides measurements and analysis tools for queries. |
|
postqpp
Package preqpp implements pre-retrieval query performance predictors, reproducing the Java API from https://github.com/lucene4ir/lucene4ir
|
Package preqpp implements pre-retrieval query performance predictors, reproducing the Java API from https://github.com/lucene4ir/lucene4ir |
|
preqpp
Package preqpp implements pre-retrieval query performance predictors, reproducing the Java API from https://github.com/lucene4ir/lucene4ir
|
Package preqpp implements pre-retrieval query performance predictors, reproducing the Java API from https://github.com/lucene4ir/lucene4ir |
|
Package output provides different formats of output for experiments.
|
Package output provides different formats of output for experiments. |
|
Package pipeline provides a framework for constructing reproducible query experiments.
|
Package pipeline provides a framework for constructing reproducible query experiments. |
|
Package preprocess handles preprocessing and transformation of queries.
|
Package preprocess handles preprocessing and transformation of queries. |
|
Package query provides sources for loading queries in different formats.
|
Package query provides sources for loading queries in different formats. |
|
Package stats provides implementations of statistic sources.
|
Package stats provides implementations of statistic sources. |