termfreq

package
v0.0.140 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Overview

termfreq provides IO functions to read term frequency information from Firestore

Index

Constants

View Source
const (
	QueryLimit = 1000
)

Variables

This section is empty.

Functions

func NewFirestoreDocFinder added in v0.0.105

func NewFirestoreDocFinder(client fsClient, corpus string, generation int, addDirectory bool, queryLimit int) find.TermFreqDocFinder

NewFirestoreDocFinder creates a TermFreqDocFinder implemented with a Firestore client Set addDirectory if you need to add a directory prefix to the collection names

Types

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"`
	TFIDF      float64 `firestore:"tfidf"`
}

Jump to

Keyboard shortcuts

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