glove

package
v0.0.0-...-4354276 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cooccur

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

func NewCooccur

func NewCooccur(vocab VocabCount, bigramStorage storages.BigramStorage, op *options.GloveOptions) *Cooccur

func (*Cooccur) NewLine

func (o *Cooccur) NewLine()

func (*Cooccur) Push

func (o *Cooccur) Push(word string)

type VocabCount

type VocabCount map[string]*WordCount

func NewVocabCount

func NewVocabCount() VocabCount

func (*VocabCount) Add

func (o *VocabCount) Add(word string)

func (*VocabCount) AddCount

func (o *VocabCount) AddCount(wc *WordCount)

func (VocabCount) Get

func (o VocabCount) Get(word string) (*WordCount, bool)

func (VocabCount) Len

func (o VocabCount) Len() int

func (VocabCount) Sort

func (o VocabCount) Sort(min, max int) (result []*WordCount)

type WordCount

type WordCount struct {
	Word  string
	Count int
	Index int
}

Jump to

Keyboard shortcuts

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