Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
- Specify multiple label streams with the HTKMLFReader?
- Use the built-in readers to train a network model using multiple input files?
- Put labels and features in separate files with CNTKTextFormatReader?
Specify multiple label streams with the HTKMLFReader
The HTKMLFReader (the reader to read Master Label Files (MLF) of the Hidden Markov Toolkit (HTK)) can be configured to read multiple label streams. The example below is taken from TIMIT_TrainMultiTask_ndl_deprecated.cntk in the Examples directory:
reader = {
readerType = "HTKMLFReader"
...
labels = {
mlfFile = "$MlfDir$/TIMIT.train.align_cistate.mlf.cntk"
labelMappingFile = "$MlfDir$/TIMIT.statelist"
labelDim = 183
labelType = "category"
}
regions = {
mlfFile = "$MlfDir$/TIMIT.train.align_dr.mlf.cntk"
labelDim = 8
labelType = "category"
}
}
Use built in readers with multiple inputs
See the description at Understanding and Extending Readers and look for the section describing how to "compose several data deserializers"
Put labels and features in separate files with CNTKTextFormatReader
Use the composite reader to specify the two files, one for labels, and one for features. And make sure to match sequence id's in labels file and the features file.
reader = [
…
deserializers = (
[
type = "CNTKTextFormatDeserializer" ; module = "CNTKTextFormatReader"
file = "$RootDir$/features.txt"
input = [ features = [...]]
]:[
type = "CNTKTextFormatDeserializer" ; module = "CNTKTextFormatReader"
file = "$RootDir$/labels.txt"
input = [ labels = [...]]
]
]