Interface NlpServiceGrpc.AsyncService

    • Method Detail

      • vectors

        default void vectors​(VectorsRequest request,
                             io.grpc.stub.StreamObserver<VectorsResponse> responseObserver)
         Compute embeddings (i.e., vectors) for strings.
         
      • docBin

        default 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.