Text this: Learning to represent continuous variables in heterogeneous neural networks