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