Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AlexWan0/infini-gram
/ types & classes
Types & classes
13 in github.com/AlexWan0/infini-gram
⨍
Functions
139
◇
Types & classes
13
Struct
Index
Index implements a suffix array for fast substring search.
suffixarray/suffixarray.go:34
Struct
MMappedArray
Access the tokenized corpus from a memory-mapped file.
data_map.go:37
Struct
MMappedSA
Access the suffix array from a memory-mapped file.
sa_map.go:41
Struct
MemArray
Loads the entire tokenized corpus into memory.
data_map.go:16
Struct
MemSA
Loads the entire suffix array into memory.
sa_map.go:17
Struct
ModelData
Wrapper around infini-gram model data.
infinigram.go:15
Struct
MultiSuffixArray
Wrapper around suffix arrays corresponding to multiple chunks of data. Will sum over the results of each chunk.
suffixarray_utils.go:15
Interface
Ordered
utils.go:64
Struct
Prediction
Wrapper around infini-gram model predictions results.
infinigram.go:22
Interface
SuffixArray
suffixarray_utils.go:8
Interface
SuffixArrayData
Wraps the suffix array.
sa_map.go:11
Interface
TokenArray
Wraps the tokenized corpus file.
data_map.go:10
Struct
ints
An ints is either an []int32 or an []int64. That is, one of them is empty, and one is the real data. The int64 form is used when len(data) > maxData32
suffixarray/suffixarray.go:42