MCPcopy Index your code
hub / github.com/buckhx/gobert

github.com/buckhx/gobert @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
111 symbols 271 edges 29 files 71 documented · 64%
What it actually does AI analysis from the code graph — generated when you open this
loading…

Extension points exported contracts — how you extend this code

Tokenizer (Interface)
Tokenizer is an interface for chunking a string into it's tokens as per the BERT implematation [3 implementers]
tokenize/tokenizer.go
Predictor (Interface)
Predictor creates tensors for prediction [1 implementers]
model/estimator/estimator.go
Provider (Interface)
Provider is an interface for exposing a vocab [1 implementers]
tokenize/vocab/vocab.go
TensorInputFunc (FuncType)
TensorInputFunc maps tensors to an estimator.InputFunc in the Predict pipeline
model/bert.go
BertOption (FuncType)
BertOption configures a BERT model
model/option.go
VocabTokenizer (Interface)
VocabTokenizer comprises of a Tokenizer and VocabProvider
tokenize/tokenizer.go
InputFunc (FuncType)
InputFunc matches feeds in sessions
model/estimator/estimator.go
FeatureTensorFunc (FuncType)
FeatureTensorFunc translates features to tensors
model/bert.go

Core symbols most depended-on inside this repo

exit
called by 7
examples/semantic-search/main.go
Value
called by 6
model/bert.go
PredictValues
called by 5
model/bert.go
println
called by 5
model/bert.go
Tokenize
called by 4
tokenize/tokenizer.go
tokenizeWhitespace
called by 4
tokenize/basic.go
GetID
called by 4
tokenize/vocab/vocab.go
Int32
called by 3
tokenize/vocab/vocab.go

Shape

Function 64
Method 24
Struct 10
FuncType 6
Interface 6
TypeAlias 1

Languages

Go94%
Python6%

Modules by API surface

tokenize/vocab/vocab.go11 symbols
model/bert.go11 symbols
tokenize/tokenizer.go8 symbols
tokenize/basic.go8 symbols
tokenize/feature.go7 symbols
examples/semantic-search/engine.go7 symbols
model/option.go6 symbols
tokenize/wordpiece.go5 symbols
model/estimator/estimator.go5 symbols
tokenize/unicode_test.go4 symbols
tokenize/unicode.go4 symbols
tokenize/full.go3 symbols

For agents

$ claude mcp add gobert \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact