Density Representations for Words and Hierarchical Data