Documentation ¶
Overview ¶
Author: Aosen Data: 2016-01-06 QQ: 316052486 Desc: BM25打分器 详情见http://en.wikipedia.org/wiki/Okapi_BM25
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BM25Scorer ¶
type BM25Scorer struct { }
一个简单的评分规则,文档分数为BM25
func NewBM25Scorer ¶
func NewBM25Scorer() *BM25Scorer
func (*BM25Scorer) Score ¶
func (self *BM25Scorer) Score(doc search.IndexedDocument, fields interface{}) []float32
Click to show internal directories.
Click to hide internal directories.