Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CounterVocab ¶
Simple crawler.Processor that count the vocabulary occure.
func (CounterVocab) Frequency ¶
func (counter CounterVocab) Frequency() (list []WordFrequency)
Get the word frequency list sorted in reverse order.
func (CounterVocab) Process ¶
func (counter CounterVocab) Process(page *crawler.Page)
func (CounterVocab) Sum ¶
func (counter CounterVocab) Sum() (sum int)
Total numbers of vocabulary all document. Must be call after all VocabCounter.Process()
type KeyFloat32 ¶
type Links ¶
type Links struct {
// contains filtered or unexported fields
}
type ReverseIndex ¶
type ReverseIndex map[keys.Key][]KeyFloat32
func LoadReverseIndex ¶
func LoadReverseIndex(file string) (ReverseIndex, error)
func (ReverseIndex) Process ¶
func (index ReverseIndex) Process(page *crawler.Page)
func (ReverseIndex) Sort ¶
func (advanced ReverseIndex) Sort()
Sort map item by the order of the key.
func (ReverseIndex) Store ¶
func (advanced ReverseIndex) Store(file string) error
type SortPageRankItem ¶
On item returned by SortPageRank.
func SortPageRank ¶
func SortPageRank(db *crawldatabase.Database[crawler.Page], scores map[keys.Key]float32, limit int) ([]SortPageRankItem, error)
Return the limit most ranked page.
type WordFrequency ¶
Click to show internal directories.
Click to hide internal directories.