CreateTextLoader can read in data as KeyTypes, but ReadFromTextFile cannot.
CreateTextLoader works like this:
new TextLoader.Column(matrixColumnIndexColumnName, DataKind.U4, new [] { new TextLoader.Range(1) }, new KeyCount(20)),
Now, there is a KeyType(Count = 20) attributes that you can put on a class property, but this only seems to be used by scoring. I'd like to be able to use that, or something like that, to read in data directly as KeyType.
CreateTextLoadercan read in data as KeyTypes, butReadFromTextFilecannot.CreateTextLoaderworks like this:Now, there is a
KeyType(Count = 20)attributes that you can put on a class property, but this only seems to be used by scoring. I'd like to be able to use that, or something like that, to read in data directly as KeyType.