(ctx context.Context, text string)
| 56 | } |
| 57 | |
| 58 | func (m *modelTokenClassifier) TokenClassify(ctx context.Context, text string) ([]TokenEntity, error) { |
| 59 | fn, err := ModelTokenClassify(text, m.opts, m.loader, m.modelConfig, m.appConfig) |
| 60 | if err != nil { |
| 61 | return nil, err |
| 62 | } |
| 63 | return fn(ctx) |
| 64 | } |
| 65 | |
| 66 | // ModelTokenClassify loads the backend for modelConfig and returns a |
| 67 | // closure that classifies `text`. Mirrors ModelScore: the closure is |
nothing calls this directly
no test coverage detected