Class NlpServiceGrpc.NlpServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<NlpServiceGrpc.NlpServiceFutureStub>
de.uni_trier.recap.arg_services.nlp.v1.NlpServiceGrpc.NlpServiceFutureStub
- Enclosing class:
- NlpServiceGrpc
public static final class NlpServiceGrpc.NlpServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<NlpServiceGrpc.NlpServiceFutureStub>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionprotected NlpServiceGrpc.NlpServiceFutureStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<DocBinResponse>docBin(DocBinRequest request) Process strings by spacy and return them as [binary data](https://spacy.io/api/docbin).com.google.common.util.concurrent.ListenableFuture<SimilaritiesResponse>similarities(SimilaritiesRequest request) Compute the similarity score between two strings.com.google.common.util.concurrent.ListenableFuture<VectorsResponse>vectors(VectorsRequest request) Compute embeddings (i.e., vectors) for strings.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
-
Method Details
-
build
protected NlpServiceGrpc.NlpServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<NlpServiceGrpc.NlpServiceFutureStub>
-
vectors
public com.google.common.util.concurrent.ListenableFuture<VectorsResponse> vectors(VectorsRequest request) Compute embeddings (i.e., vectors) for strings.
-
similarities
public com.google.common.util.concurrent.ListenableFuture<SimilaritiesResponse> similarities(SimilaritiesRequest request) Compute the similarity score between two strings.
-
docBin
public com.google.common.util.concurrent.ListenableFuture<DocBinResponse> docBin(DocBinRequest request) Process strings by spacy and return them as [binary data](https://spacy.io/api/docbin). Locally, spacy can restore this data **without** loading the underlying NLP models into the main memory. Allows one to retrieve all computed attributes (e.g., POS tags, sentences), but can only be used by Python programs.
-