public class Word2VecDataFetcher extends Object implements org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetcher
| Constructor and Description |
|---|
Word2VecDataFetcher(String path,
Word2Vec vec,
List<String> labels) |
| Modifier and Type | Method and Description |
|---|---|
int |
cursor() |
void |
fetch(int numExamples) |
int |
getBatch() |
static Pattern |
getBegin() |
List<Window> |
getCache() |
static Pattern |
getEnd() |
Iterator<File> |
getFiles() |
List<String> |
getLabels() |
Word2Vec |
getVec() |
boolean |
hasMore() |
int |
inputColumns() |
org.nd4j.linalg.dataset.DataSet |
next() |
void |
reset() |
int |
totalExamples() |
int |
totalOutcomes() |
public org.nd4j.linalg.dataset.DataSet next()
next in interface org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetcherpublic int totalExamples()
totalExamples in interface org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetcherpublic int inputColumns()
inputColumns in interface org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetcherpublic int totalOutcomes()
totalOutcomes in interface org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetcherpublic void reset()
reset in interface org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetcherpublic int cursor()
cursor in interface org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetcherpublic boolean hasMore()
hasMore in interface org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetcherpublic void fetch(int numExamples)
fetch in interface org.nd4j.linalg.dataset.api.iterator.fetcher.DataSetFetcherpublic Word2Vec getVec()
public static Pattern getBegin()
public static Pattern getEnd()
public int getBatch()
Copyright © 2017. All rights reserved.