Documentation
GitHub
Example
Dlang.org
Corpus
grain
dataset
ptb
struct
Corpus {
Dictionary
dict
;
int
[][
string
]
dataset
;
size_t
batchSize
;
auto
batchfy
(
string
name
)
;
}
Members
Functions
batchfy
auto
batchfy
(
string
name
)
returns word-id 2d slice shaped (seqlen, batchsize)
Meta
Source
See Implementation
grain
dataset
ptb
functions
prepareDataset
structs
Corpus
Dictionary