plot,VectorSpaceModel-method | R Documentation |
Visualizing a model as a whole is sort of undefined. I think the sanest thing to do is reduce the full model down to two dimensions using T-SNE, which preserves some of the local clusters.
## S4 method for signature 'VectorSpaceModel' plot(x, method = "tsne", ...)
x |
The model to plot |
method |
The method to use for plotting. "pca" is principal components, "tsne" is t-sne |
... |
Further arguments passed to the plotting method. |
For individual subsections, it can make sense to do a principal components plot of the space of just those letters. This is what happens if method is pca. On the full vocab, it's kind of a mess.
This plots only the first 300 words in the model.
The TSNE model (silently.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.