View source: R/getEmbeddingMatrix.R
getEmbeddingMatrix | R Documentation |
Function reads in the embedding_file given by the user.
getEmbeddingMatrix(embedding_file_name)
embedding_file_name |
This should given as the file path, and needs to be in quotes. Ex: getEmbeddingMatrix("directory/embedding_file_name") |
Christine Tataru
## The function is currently defined as function (embedding_file_name) { embedding_matrix <- read.csv(embedding_file_name, row.names = 1, sep = "") return(embedding_matrix) } ## To read in the example file that comes preinstalled with the package, type the following command: getEmbeddingMatrix(system.file("extdata", "embed_.07_100dim.txt", package = "GMEmbeddings"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.