The following notebooks provide code and instructions for training and querying models using the
wordVectors R package
developed by Ben Schmidt and Jian Li. These versions have been formatted for the web to make them easier to read. To download and run the
RMarkdown versions, see the latest release on GitHub. To
see the full set of code notebooks, along with addtional context and instructions, see the GitHub repository. Some of the notebooks are designed for RStudio Server, others for RStudio Desktop, and some can be used with either.
- Introduction to R and RStudio gives an introduction to the basic concepts of the R programming language and the RStudio programming environment. It can be used in both the RStudio Server environment and on your own computer.
- Word Vectors Starter Queries provides a framework for querying a model that has already been trained (it does not include the code for the model training process). It assumes that you are working in the RStudio Server environment, so it does not include code for loading in external code packages, since those are provided within the Server environment.
- Word Vectors Training, Querying, and Validation provides a full framework for the entire process of training, query, and validating a model. As with the Starter Queries walkthrough, it assumes you are working in the RStudio Server environment, so it does not include code for loading external packages, and it does include instructions for getting your output files out of RStudio Server and onto your own computer, and for loading your files into the RStudio Server environment.
- Word Vectors Installation, Training, Querying, and Validation covers the same functionality as the walkthrough above, but it assumes you are running the walkthrough on your own computer rather than in RStudio Server.
- Word Vectors Visualization provides more detailed code for visualizing an existing trained model, working through a set of example plots with the Women Writers Online collection. It can be used in both the RStudio Server environment and on your own computer.