strs

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigramIntersectionCount added in v0.7.1

func BigramIntersectionCount(s1, s2 BigramSet) int

func IntersectionCount

func IntersectionCount(s1, s2 Set) int

Types

type BigramSet added in v0.7.1

type BigramSet = []uint16

func Bigram added in v0.7.1

func Bigram(s []byte) BigramSet

func CompactBigrams added in v0.8.1

func CompactBigrams(bigrams []BigramSet) []BigramSet

CompactBigrams compacts bigrams memory for better CPU cache hit ratio.

type Set

type Set = map[string]struct{}

func NGram

func NGram(n int, s []byte) Set

Jump to

Keyboard shortcuts

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