MCPcopy
hub / github.com/mudler/LocalAI / TokenClassify

Method TokenClassify

core/backend/token_classify.go:41–41  ·  view source on GitHub ↗
(ctx context.Context, text string)

Source from the content-addressed store, hash-verified

39// core/services/routing/piidetector).
40type TokenClassifier interface {
41 TokenClassify(ctx context.Context, text string) ([]TokenEntity, error)
42}
43
44// NewTokenClassifier binds (loader, modelConfig, appConfig) into a

Callers 4

ModelTokenClassifyFunction · 0.65
inflight_test.goFile · 0.65
TokenClassifyMethod · 0.65
DetectMethod · 0.65

Implementers 8

BackendServicerbackend/python/transformers/backend.py
modelTokenClassifiercore/backend/token_classify.go
fakeBackendClientcore/services/nodes/health_mock_test.g
fakeGRPCBackendcore/services/nodes/inflight_test.go
InFlightTrackingClientcore/services/nodes/inflight.go
embedBackendpkg/grpc/embed.go
Clientpkg/grpc/client.go
ConnectionEvictingClientpkg/model/connection_evicting_client.g

Calls

no outgoing calls

Tested by

no test coverage detected