Documentation ¶
Index ¶
- Variables
- func CLF(query pipeline.Query, e stats.EntrezStatisticsSource, options CLFOptions) (trecresults.ResultList, error)
- func Rank(query string, topic string, scorer Scorer, e stats.EntrezStatisticsSource) (trecresults.ResultList, error)
- type BM25Scorer
- type CLFOptions
- type DirichletTermProbScorer
- type DocLenScorer
- type IDFScorer
- type LnL2Scorer
- type PosScorer
- type Posting
- func (p *Posting) AvgDocLen(field string) float64
- func (p *Posting) CollectionTermProbability(term, field string) float64
- func (p *Posting) DirichlectTermProbability(term, field, pmid string, mu float64) float64
- func (p *Posting) DocLen(field string, pmid string) float64
- func (p *Posting) DocumentTermProbability(term, field, pmid string) float64
- func (p *Posting) DocumentVector(pmid uint32) []float64
- func (p *Posting) Pos(term, field, pmid string) float64
- func (p *Posting) TTf(term, field string) float64
- func (p *Posting) Tf(term, field, pmid string) float64
- func (p *Posting) VocabSize(field string) float64
- type PubDateScorer
- type QueryOptimiser
- type Runner
- type ScoredDocument
- type ScoredDocuments
- type Scorer
- type Statistics
- type SumIDFScorer
- type SumTFScorer
- type TFIDFScorer
- type TitleAbstractScorer
- type VectorSpaceScorer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
H = fnv.New32a()
)
View Source
var MESH, _ = meshexp.Default()
Functions ¶
func CLF ¶
func CLF(query pipeline.Query, e stats.EntrezStatisticsSource, options CLFOptions) (trecresults.ResultList, error)
CLF performs coordination-level fusion given a query. This wrapper function performs some pre-processing steps before actually ranking the documents for the query.
func Rank ¶
func Rank(query string, topic string, scorer Scorer, e stats.EntrezStatisticsSource) (trecresults.ResultList, error)
Types ¶
type BM25Scorer ¶
type CLFOptions ¶
type CLFOptions struct { CLF bool `json:"clf"` RankCLM bool `json:"rank_clm"` RankCLF bool `json:"rank_clf"` QueryExpansion bool `json:"query_expansion"` PubMedBaseline bool `json:"pubmed_baseline"` ScorePubMed bool `json:"score_pubmed"` OnlyScorePubMed bool `json:"only_score_pubmed"` RetrievalModel bool `json:"retrieval_model"` Cutoff float64 `json:"cutoff"` CLFVariations bool `json:"clf_variations"` VariationsOutput string `json:"variations_output"` PMIDS string `json:"pmids"` Qrels string `json:"qrels"` Titles string `json:"titles"` Headway *headway.Client // contains filtered or unexported fields }
func (CLFOptions) SetVariationOptions ¶
func (o CLFOptions) SetVariationOptions(vector cui2vec.Embeddings, mapping cui2vec.Mapping, cache quickumlsrest.Cache) CLFOptions
type DirichletTermProbScorer ¶
type DirichletTermProbScorer struct { Mu float64 // contains filtered or unexported fields }
type DocLenScorer ¶
type DocLenScorer struct {
// contains filtered or unexported fields
}
type LnL2Scorer ¶
type LnL2Scorer struct {
// contains filtered or unexported fields
}
type Posting ¶
type Posting struct { // Term -> Field -> PMID -> TF Index map[uint32]map[uint32]map[uint32]Statistics // PMID -> Field -> DocLen DocLens map[string]map[uint32]float64 DocDates map[uint32]int64 TermIdx map[uint32]int MaxDocLen float64 // contains filtered or unexported fields }
func (*Posting) CollectionTermProbability ¶
func (*Posting) DirichlectTermProbability ¶
func (*Posting) DocumentTermProbability ¶
func (*Posting) DocumentVector ¶
type PubDateScorer ¶
type PubDateScorer struct {
// contains filtered or unexported fields
}
type QueryOptimiser ¶
type QueryOptimiser struct {
// contains filtered or unexported fields
}
type Runner ¶
type Runner struct { stats.EntrezStatisticsSource // contains filtered or unexported fields }
func (Runner) Run ¶
func (r Runner) Run() ([]ScoredDocuments, error)
type ScoredDocument ¶
type ScoredDocuments ¶
type ScoredDocuments struct {
Docs []ScoredDocument
}
type Statistics ¶
type SumIDFScorer ¶
type SumIDFScorer struct {
// contains filtered or unexported fields
}
type SumTFScorer ¶
type SumTFScorer struct {
// contains filtered or unexported fields
}
type TFIDFScorer ¶
type TFIDFScorer struct {
// contains filtered or unexported fields
}
type TitleAbstractScorer ¶
type TitleAbstractScorer struct {
// contains filtered or unexported fields
}
type VectorSpaceScorer ¶
type VectorSpaceScorer struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.