RCopy code
install.packages("textTinyR") install.packages("ggplot2")
RCopy code
library(textTinyR) library(ggplot2)
RCopy code
x <- 5 + 3 # Assigns the value 8 to x
RCopy code
print(x) # Outputs the value of x
RCopy code
v <- c(1, 2, 3) # Creates a vector v with values 1, 2, and 3
RCopy code
# Load the package
library(textTinyR)
# Example sentences
sentences <- c("I love machine learning", "Word embeddings are fascinating")
# Create word embeddings
embeddings <- WORD2VEC(sentences = sentences, method = 'skipgram')