termfreq

package
v0.0.103 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

termfreq provides IO functions to read term frequency information from Firestore

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BM25Score added in v0.0.100

type BM25Score struct {
	Document   string
	Collection string
	Score      float64
}

func FindDocsBigramCo added in v0.0.102

func FindDocsBigramCo(ctx context.Context, client fsClient, corpus string, generation int, bigrams []string, col string) ([]BM25Score, error)

FindDocsTermCo finds documents within the scope of a corpus collection

func FindDocsBigramFreq added in v0.0.100

func FindDocsBigramFreq(ctx context.Context, client fsClient, corpus string, generation int, bigrams []string) ([]BM25Score, error)

FindDocsBigramFreq finds documents with occurences of any of the bigram given in the corpus ordered by BM25 score

func FindDocsTermCo added in v0.0.102

func FindDocsTermCo(ctx context.Context, client fsClient, corpus string, generation int, terms []string, col string) ([]BM25Score, error)

FindDocsTermCo finds documents within the scope of a corpus collection

func FindDocsTermFreq added in v0.0.100

func FindDocsTermFreq(ctx context.Context, client fsClient, corpus string, generation int, terms []string) ([]BM25Score, error)

FindDocsTermFreq finds documents with occurences of any of the terms given in the corpus ordered by BM25 score

type TermFreqDoc

type TermFreqDoc struct {
	Term       string  `firestore:"term"`
	Freq       int64   `firestore:"freq"`
	Collection string  `firestore:"collection"`
	Document   string  `firestore:"document"`
	IDF        float64 `firestore:"idf"`
	DocLen     int64   `firestore:"doclen"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL