Class NlpServiceGrpc.NlpServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<NlpServiceGrpc.NlpServiceBlockingStub>
-
- de.uni_trier.recap.arg_services.nlp.v1.NlpServiceGrpc.NlpServiceBlockingStub
-
- Enclosing class:
- NlpServiceGrpc
public static final class NlpServiceGrpc.NlpServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<NlpServiceGrpc.NlpServiceBlockingStub>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NlpServiceGrpc.NlpServiceBlockingStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)DocBinResponsedocBin(DocBinRequest request)Process strings by spacy and return them as [binary data](https://spacy.io/api/docbin).SimilaritiesResponsesimilarities(SimilaritiesRequest request)Compute the similarity score between two strings.VectorsResponsevectors(VectorsRequest request)Compute embeddings (i.e., vectors) for strings.
-
-
-
Method Detail
-
build
protected NlpServiceGrpc.NlpServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<NlpServiceGrpc.NlpServiceBlockingStub>
-
vectors
public VectorsResponse vectors(VectorsRequest request)
Compute embeddings (i.e., vectors) for strings.
-
similarities
public SimilaritiesResponse similarities(SimilaritiesRequest request)
Compute the similarity score between two strings.
-
docBin
public 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.
-
-