/
BERT REST Client
BERT REST Client
Encode Request
var encodeRequest = EncodeRequest.builder()
.id("123")
.chunk("First chunk of text for the encoding")
.chunk("Second chunk of text for the prediction")
.model("sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2") // if this is null, the server will use the default model
.build();
var result = client.encode(request);
The result
will return 200
for the status code and the corresponding list of vectors:
{
"id": 123,
"results": [[float-list], [float-list]],
"status": 200
}
, multiple selections available,
Related content
spaCy REST Client
spaCy REST Client
More like this
DistilBERT REST Client
DistilBERT REST Client
More like this
Core Common
Core Common
Read with this
BERT Service Processor
BERT Service Processor
More like this
Udemy Connector
Udemy Connector
Read with this
HuggingFace REST Client
HuggingFace REST Client
More like this
©2024 Pureinsights Technology Corporation