Simple nn.Linear() decoder to do sequence classification

I would like to be able to do ranking/classification based on a sequence input. E.g. language detection, sentiment anaysis, etc.