synth

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocumentGenerator

type DocumentGenerator struct {
	// contains filtered or unexported fields
}

DocumentGenerator generates synthetic documents for benchmarkig

func NewDocumentGenerator

func NewDocumentGenerator(vocabSize int, fields map[string][2]int) *DocumentGenerator

func (*DocumentGenerator) Generate

func (g *DocumentGenerator) Generate(docId int) index.Document

Generate generates a synthetic document with a given id. If id is 0, we select an incremental id

Jump to

Keyboard shortcuts

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