package
Version:
v0.0.0-...-5fecf9c
Opens a new window with list of versions in this module.
Published: May 11, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Returns hashes of all N-grams in tokens with minN ≤ N ≤ maxN.
The hash of an N-gram is the hash of the tokens, joined by NUL characters.
We assume these don't occur in text. The hash function used is FNV-32.
type HashPos struct {
Hash uint32
Start, End int
}
Hash of n-gram at position Start through End (exclusive) in the input.
The length of input n-gram is (End-Start).
Like NGrams, but returns position info and minN is hardcoded to one.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.