client

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: BSD-2-Clause Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, target string, opts Options) (_ *grpc.ClientConn, err error)

Dial creates a client connection to the configured target, also respecting the given configuration.

This function blocks until the underlying connection is up, within a timeout of 30 seconds.

func NewClientForLanguageModeling added in v0.1.2

func NewClientForLanguageModeling(target string, opts Options) languagemodeling.Interface

NewClientForLanguageModeling creates a new client for language modeling.

func NewClientForQuestionAnswering

func NewClientForQuestionAnswering(target string, opts Options) questionanswering.Interface

NewClientForQuestionAnswering creates a new client for extractive question-answering.

func NewClientForTextClassification

func NewClientForTextClassification(target string, opts Options) textclassification.Interface

NewClientForTextClassification creates a new client for text classification.

func NewClientForTextEncoding

func NewClientForTextEncoding(target string, opts Options) textencoding.Interface

NewClientForTextEncoding creates a new client for text classification.

func NewClientForTextGeneration

func NewClientForTextGeneration(target string, opts Options) textgeneration.Interface

NewClientForTextGeneration creates a new client for text generation.

func NewClientForTokenClassification

func NewClientForTokenClassification(target string, opts Options) tokenclassification.Interface

NewClientForTokenClassification creates a new client for token classification.

func NewClientForZeroShotClassification

func NewClientForZeroShotClassification(target string, opts Options) zeroshotclassifier.Interface

NewClientForZeroShotClassification creates a new client for zero-shot text classification.

Types

type Options

type Options struct {
	UseTLS        bool
	CertFile      string
	UseRoundRobin bool
}

Options are the options for dialing a gRPC client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL