Class NlpServiceGrpc.NlpServiceImplBase
java.lang.Object
de.uni_trier.recap.arg_services.nlp.v1.NlpServiceGrpc.NlpServiceImplBase
- All Implemented Interfaces:
io.grpc.BindableService
- Enclosing class:
- NlpServiceGrpc
public abstract static class NlpServiceGrpc.NlpServiceImplBase
extends Object
implements io.grpc.BindableService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal io.grpc.ServerServiceDefinitionvoiddocBin(DocBinRequest request, io.grpc.stub.StreamObserver<DocBinResponse> responseObserver) Process strings by spacy and return them as [binary data](https://spacy.io/api/docbin).voidsimilarities(SimilaritiesRequest request, io.grpc.stub.StreamObserver<SimilaritiesResponse> responseObserver) Compute the similarity score between two strings.voidvectors(VectorsRequest request, io.grpc.stub.StreamObserver<VectorsResponse> responseObserver) Compute embeddings (i.e., vectors) for strings.
-
Constructor Details
-
NlpServiceImplBase
public NlpServiceImplBase()
-
-
Method Details
-
vectors
public void vectors(VectorsRequest request, io.grpc.stub.StreamObserver<VectorsResponse> responseObserver) Compute embeddings (i.e., vectors) for strings.
-
similarities
public void similarities(SimilaritiesRequest request, io.grpc.stub.StreamObserver<SimilaritiesResponse> responseObserver) Compute the similarity score between two strings.
-
docBin
public void docBin(DocBinRequest request, io.grpc.stub.StreamObserver<DocBinResponse> responseObserver) 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.
-
bindService
public final io.grpc.ServerServiceDefinition bindService()- Specified by:
bindServicein interfaceio.grpc.BindableService
-