public class ELMoRESTEncoder extends SimpleRESTEncoder
restAdapterenableCacheid, model, modelAvailable, name, timer| Modifier | Constructor and Description |
|---|---|
protected |
ELMoRESTEncoder() |
|
ELMoRESTEncoder(RESTAdapter restAdapter) |
|
ELMoRESTEncoder(RESTAdapter restAdapter,
String vectorIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
static ELMoRESTEncoder |
create(ELMoLayerOutput elMoLayerOutput,
String domain,
int port) |
static ELMoRESTEncoder |
create(ELMoLayerOutput elMoLayerOutput,
String domain,
int port,
long embeddingVectorSize,
int connectTimeout,
int readTimeout) |
static ELMoRESTEncoder |
create(ELMoLayerOutput elMoLayerOutput,
String domain,
int port,
long embeddingVectorSize,
int connectTimeout,
int readTimeout,
String vectorIdentifier) |
static ELMoRESTEncoder |
create(ELMoLayerOutput elMoLayerOutput,
String domain,
int port,
String vectorIdentifier) |
void |
encodeEachImpl(Collection<Document> docs) |
void |
encodeEachImpl(Document input) |
void |
encodeEachImpl(Sentence input) |
org.nd4j.linalg.api.ndarray.INDArray |
encodeImpl(Span span) |
org.nd4j.linalg.api.ndarray.INDArray |
encodeImpl(String word) |
encode, encode, encodeEach, encodeEach, encodeEach, encodeEach, encodeEach, encodeEach1D, encodeEach1D, encodeEach2D, encodeEach2D, encodeValue, getTokensOfSentencesOfDocument, putVectorInSpan, putVectorInSpans, putVectorInSpans, spansToStringArray1D, spansToStringArray1D, spansToStringArray2D, spansToStringArray2D, streamSpans2D, streamTokensOfSentencesOfDocumentgetEmbeddingVectorSize, getRestAdapter, loadModel, saveModel, setRestAdapter, trainModel, trainModelencode, encodeMatrix, isCachingEnabled, setCachingEnabledappendTestLog, appendTestLog, appendTrainLog, appendTrainLog, clearTestLog, clearTrainLog, getConf, getId, getModel, getName, getTestLog, getTrainLog, isModelAvailable, isModelAvailableInChildren, setConf, setId, setModel, setModelAvailable, setModelFilename, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEncoders, getId, getName, isModelAvailable, setEncodersprotected ELMoRESTEncoder()
public ELMoRESTEncoder(RESTAdapter restAdapter)
public ELMoRESTEncoder(RESTAdapter restAdapter, String vectorIdentifier)
public static ELMoRESTEncoder create(ELMoLayerOutput elMoLayerOutput, String domain, int port)
public static ELMoRESTEncoder create(ELMoLayerOutput elMoLayerOutput, String domain, int port, String vectorIdentifier)
public static ELMoRESTEncoder create(ELMoLayerOutput elMoLayerOutput, String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout)
public static ELMoRESTEncoder create(ELMoLayerOutput elMoLayerOutput, String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout, String vectorIdentifier)
public org.nd4j.linalg.api.ndarray.INDArray encodeImpl(String word) throws IOException
encodeImpl in class SimpleRESTEncoderIOExceptionpublic org.nd4j.linalg.api.ndarray.INDArray encodeImpl(Span span) throws IOException
encodeImpl in class SimpleRESTEncoderIOExceptionpublic void encodeEachImpl(Sentence input) throws IOException
encodeEachImpl in class SimpleRESTEncoderIOExceptionpublic void encodeEachImpl(Document input) throws IOException
encodeEachImpl in class SimpleRESTEncoderIOExceptionpublic void encodeEachImpl(Collection<Document> docs) throws IOException
encodeEachImpl in class SimpleRESTEncoderIOExceptionCopyright © 2020. All rights reserved.