public abstract class AbstractRESTEncoder extends Encoder
| Modifier and Type | Field and Description |
|---|---|
protected RESTAdapter |
restAdapter |
enableCacheid, log, model, modelAvailable, name, timer| Modifier | Constructor and Description |
|---|---|
protected |
AbstractRESTEncoder(String id) |
|
AbstractRESTEncoder(String id,
RESTAdapter restAdapter) |
| Modifier and Type | Method and Description |
|---|---|
long |
getEmbeddingVectorSize() |
RESTAdapter |
getRestAdapter() |
void |
loadModel(Resource file) |
void |
saveModel(Resource dir,
String name) |
void |
setRestAdapter(RESTAdapter restAdapter) |
void |
trainModel(Collection<Document> documents) |
void |
trainModel(Stream<Document> documents) |
encode, encodeEach, encodeEach, encodeEach, 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 RESTAdapter restAdapter
protected AbstractRESTEncoder(String id)
public AbstractRESTEncoder(String id, RESTAdapter restAdapter)
public RESTAdapter getRestAdapter()
public void setRestAdapter(RESTAdapter restAdapter)
public long getEmbeddingVectorSize()
public void trainModel(Collection<Document> documents)
trainModel in class Encoderpublic void trainModel(Stream<Document> documents)
trainModel in class Encoderpublic void loadModel(Resource file) throws IOException
IOExceptionpublic void saveModel(Resource dir, String name) throws IOException
IOExceptionCopyright © 2020. All rights reserved.