termfreq

package
v0.0.124 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 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

This section is empty.

Variables

This section is empty.

Functions

func NewFirestoreDocFinder added in v0.0.105

func NewFirestoreDocFinder(client fsClient, corpus string, generation int, addDirectory bool) 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"`
}

Jump to

Keyboard shortcuts

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