Skip to content

Put labels and features in separate files with CNTKTextFormatReader

Allison Brucker (Resources Online) edited this page May 30, 2017 · 4 revisions

This page has migrated to our new site. Please update any bookmarks.

Use the composite reader to specifiy the two files, one for lables, 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 = [...]]
  ]
]
Clone this wiki locally