Package io.github.kirstenali.deepj.data
Class TextDataset
java.lang.Object
io.github.kirstenali.deepj.data.TextDataset
- All Implemented Interfaces:
BatchSource
-
Method Summary
-
Method Details
-
fromFile
public static TextDataset fromFile(Path path, Tokenizer tok, int seqLen, long seed) throws IOException - Throws:
IOException
-
nextBatch
- Specified by:
nextBatchin interfaceBatchSource
-
seqLen
public int seqLen() -
size
public long size()
-