jasondavies / d3-cloud

Create word clouds in JavaScript.
https://www.jasondavies.com/wordcloud/
Other
3.82k stars 1.07k forks source link

Words desired position #132

Closed mlemainque closed 3 years ago

mlemainque commented 7 years ago

Hi,

For a semantic analysis application I had to be able to manually set words' desired position to be able to see semantic groups of words... So I've added a .position() setter to the cloud class. I think this little feature could be useful to other people...

FYI the words position could be "easily" precomputed by combining a word2vec transformation with a manifold algorithm such as t-SNE

Regards,