Sequence learning with side information : modeling and applications