pb

package
v0.0.0-...-a9c0f88 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_preprocess_proto protoreflect.FileDescriptor

Functions

func RegisterPreprocessingServiceServer

func RegisterPreprocessingServiceServer(s *grpc.Server, srv PreprocessingServiceServer)

Types

type PreprocessingServiceClient

type PreprocessingServiceClient interface {
	Tokenize(ctx context.Context, in *TokenizationRequest, opts ...grpc.CallOption) (*TokenizationResponse, error)
	ExtractSentences(ctx context.Context, in *SentenceExtractionRequest, opts ...grpc.CallOption) (*SentenceExtractionResponse, error)
}

PreprocessingServiceClient is the client API for PreprocessingService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type PreprocessingServiceServer

type PreprocessingServiceServer interface {
	Tokenize(context.Context, *TokenizationRequest) (*TokenizationResponse, error)
	ExtractSentences(context.Context, *SentenceExtractionRequest) (*SentenceExtractionResponse, error)
}

PreprocessingServiceServer is the server API for PreprocessingService service.

type SentenceExtractionRequest

type SentenceExtractionRequest struct {
	Document                 string `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"`
	DoNotSplitInDoubleQuotes bool   `protobuf:"varint,2,opt,name=doNotSplitInDoubleQuotes,proto3" json:"doNotSplitInDoubleQuotes,omitempty"`
	// contains filtered or unexported fields
}

func (*SentenceExtractionRequest) Descriptor deprecated

func (*SentenceExtractionRequest) Descriptor() ([]byte, []int)

Deprecated: Use SentenceExtractionRequest.ProtoReflect.Descriptor instead.

func (*SentenceExtractionRequest) GetDoNotSplitInDoubleQuotes

func (x *SentenceExtractionRequest) GetDoNotSplitInDoubleQuotes() bool

func (*SentenceExtractionRequest) GetDocument

func (x *SentenceExtractionRequest) GetDocument() string

func (*SentenceExtractionRequest) ProtoMessage

func (*SentenceExtractionRequest) ProtoMessage()

func (*SentenceExtractionRequest) ProtoReflect

func (*SentenceExtractionRequest) Reset

func (x *SentenceExtractionRequest) Reset()

func (*SentenceExtractionRequest) String

func (x *SentenceExtractionRequest) String() string

type SentenceExtractionResponse

type SentenceExtractionResponse struct {
	Sentences []string `protobuf:"bytes,1,rep,name=sentences,proto3" json:"sentences,omitempty"`
	// contains filtered or unexported fields
}

func (*SentenceExtractionResponse) Descriptor deprecated

func (*SentenceExtractionResponse) Descriptor() ([]byte, []int)

Deprecated: Use SentenceExtractionResponse.ProtoReflect.Descriptor instead.

func (*SentenceExtractionResponse) GetSentences

func (x *SentenceExtractionResponse) GetSentences() []string

func (*SentenceExtractionResponse) ProtoMessage

func (*SentenceExtractionResponse) ProtoMessage()

func (*SentenceExtractionResponse) ProtoReflect

func (*SentenceExtractionResponse) Reset

func (x *SentenceExtractionResponse) Reset()

func (*SentenceExtractionResponse) String

func (x *SentenceExtractionResponse) String() string

type TokenProto

type TokenProto struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// TODO: Types should be enums.
	Type  string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Start int32  `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	End   int32  `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenProto) Descriptor deprecated

func (*TokenProto) Descriptor() ([]byte, []int)

Deprecated: Use TokenProto.ProtoReflect.Descriptor instead.

func (*TokenProto) GetEnd

func (x *TokenProto) GetEnd() int32

func (*TokenProto) GetStart

func (x *TokenProto) GetStart() int32

func (*TokenProto) GetToken

func (x *TokenProto) GetToken() string

func (*TokenProto) GetType

func (x *TokenProto) GetType() string

func (*TokenProto) ProtoMessage

func (*TokenProto) ProtoMessage()

func (*TokenProto) ProtoReflect

func (x *TokenProto) ProtoReflect() protoreflect.Message

func (*TokenProto) Reset

func (x *TokenProto) Reset()

func (*TokenProto) String

func (x *TokenProto) String() string

type TokenizationRequest

type TokenizationRequest struct {
	Input                  string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	IncludeTokenBoundaries bool   `protobuf:"varint,2,opt,name=includeTokenBoundaries,proto3" json:"includeTokenBoundaries,omitempty"`
	IgnoreDoubleQuotes     bool   `protobuf:"varint,3,opt,name=ignoreDoubleQuotes,proto3" json:"ignoreDoubleQuotes,omitempty"` // TODO: Add options (ignore etc.)
	// contains filtered or unexported fields
}

func (*TokenizationRequest) Descriptor deprecated

func (*TokenizationRequest) Descriptor() ([]byte, []int)

Deprecated: Use TokenizationRequest.ProtoReflect.Descriptor instead.

func (*TokenizationRequest) GetIgnoreDoubleQuotes

func (x *TokenizationRequest) GetIgnoreDoubleQuotes() bool

func (*TokenizationRequest) GetIncludeTokenBoundaries

func (x *TokenizationRequest) GetIncludeTokenBoundaries() bool

func (*TokenizationRequest) GetInput

func (x *TokenizationRequest) GetInput() string

func (*TokenizationRequest) ProtoMessage

func (*TokenizationRequest) ProtoMessage()

func (*TokenizationRequest) ProtoReflect

func (x *TokenizationRequest) ProtoReflect() protoreflect.Message

func (*TokenizationRequest) Reset

func (x *TokenizationRequest) Reset()

func (*TokenizationRequest) String

func (x *TokenizationRequest) String() string

type TokenizationResponse

type TokenizationResponse struct {
	Tokens []*TokenProto `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	// contains filtered or unexported fields
}

func (*TokenizationResponse) Descriptor deprecated

func (*TokenizationResponse) Descriptor() ([]byte, []int)

Deprecated: Use TokenizationResponse.ProtoReflect.Descriptor instead.

func (*TokenizationResponse) GetTokens

func (x *TokenizationResponse) GetTokens() []*TokenProto

func (*TokenizationResponse) ProtoMessage

func (*TokenizationResponse) ProtoMessage()

func (*TokenizationResponse) ProtoReflect

func (x *TokenizationResponse) ProtoReflect() protoreflect.Message

func (*TokenizationResponse) Reset

func (x *TokenizationResponse) Reset()

func (*TokenizationResponse) String

func (x *TokenizationResponse) String() string

type UnimplementedPreprocessingServiceServer

type UnimplementedPreprocessingServiceServer struct {
}

UnimplementedPreprocessingServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedPreprocessingServiceServer) ExtractSentences

func (*UnimplementedPreprocessingServiceServer) Tokenize

Jump to

Keyboard shortcuts

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