I want to append more features at the end of the encoder (to encStates variable) and pass it into the decoder. That is why I am trying to access the “keys” of the features in a particular batch. I am trying different adaptation strategies when we have extra features for speech recognition. (If the word features could work for the “feattext” data type as well, it would be really great! Please look into it.)
I tried adding the extra features that I have during preprocess.lua to the “data” variable itself along with gVectors and gFeatures, but I am stuck when trying to access the new features in Seq2Seq.lua. There it arrives as a batch, and within Batch.lua, I am not sure how I can access the new features.
What would the best way be for me if I want to add more features at the end of the encoder?