public class RemoteLanguageModel extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteLanguageModel.Request |
| Constructor and Description |
|---|
RemoteLanguageModel(String host,
int port,
boolean useSSL,
String clientPrivateKey,
String clientCertificate,
String rootCertificate) |
| Modifier and Type | Method and Description |
|---|---|
List<List<Double>> |
batchScore(List<RemoteLanguageModel.Request> requests,
long timeoutMilliseconds) |
List<Double> |
score(RemoteLanguageModel.Request req) |
void |
shutdown() |
public RemoteLanguageModel(String host, int port, boolean useSSL, @Nullable String clientPrivateKey, @Nullable String clientCertificate, @Nullable String rootCertificate) throws SSLException
SSLExceptionpublic void shutdown()
public List<List<Double>> batchScore(List<RemoteLanguageModel.Request> requests, long timeoutMilliseconds) throws TimeoutException
TimeoutExceptionpublic List<Double> score(RemoteLanguageModel.Request req)