public class SkipthoughtRESTEncoder extends SimpleRESTEncoder
restAdapterenableCacheid, model, modelAvailable, name, timer| Modifier | Constructor and Description |
|---|---|
protected |
SkipthoughtRESTEncoder() |
|
SkipthoughtRESTEncoder(RESTAdapter restAdapter) |
|
SkipthoughtRESTEncoder(RESTAdapter restAdapter,
String vectorIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
static SkipthoughtRESTEncoder |
create(String domain,
int port) |
static SkipthoughtRESTEncoder |
create(String domain,
int port,
long embeddingVectorSize,
int connectTimeout,
int readTimeout) |
static SkipthoughtRESTEncoder |
create(String domain,
int port,
long embeddingVectorSize,
int connectTimeout,
int readTimeout,
String vectorIdentifier) |
static SkipthoughtRESTEncoder |
create(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 SkipthoughtRESTEncoder()
public SkipthoughtRESTEncoder(RESTAdapter restAdapter)
public SkipthoughtRESTEncoder(RESTAdapter restAdapter, String vectorIdentifier)
public static SkipthoughtRESTEncoder create(String domain, int port)
public static SkipthoughtRESTEncoder create(String domain, int port, String vectorIdentifier)
public static SkipthoughtRESTEncoder create(String domain, int port, long embeddingVectorSize, int connectTimeout, int readTimeout)
public static SkipthoughtRESTEncoder create(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.