load_pretrained.Rd
Download and load pretrained word2vector models (https://github.com/maxoodf/word2vec#basic-usage)
load_pretrained(dir = "inst/extdata", model_name = "cb_ns_500_10")
dir | character vector for name of dir where pretrained models will be downloaded, optional (default: "inst/extdata") |
---|---|
model_name | character vector for name of pretrained model, optional (default: "cb_ns_500_10") |
word2vec model object
coRPysprofiling::load_pretrained()#>#> $model #> <pointer: 0x00000000275504e0> #> #> $model_path #> [1] "C:/Users/elano/ubc-mds/block5/dsci_524/groupproject/coRPysprofiling-R/inst/extdata/cb_ns_500_10/cb_ns_500_10.w2v" #> #> $dim #> [1] 500 #> #> $vocabulary #> [1] 437107 #> #> attr(,"class") #> [1] "word2vec"coRPysprofiling::load_pretrained(model_name = "sg_hs_500_10")#>#>#>#>#> $model #> <pointer: 0x000000002754f220> #> #> $model_path #> [1] "C:/Users/elano/ubc-mds/block5/dsci_524/groupproject/coRPysprofiling-R/inst/extdata/sg_hs_500_10/sg_hs_500_10.w2v" #> #> $dim #> [1] 500 #> #> $vocabulary #> [1] 437107 #> #> attr(,"class") #> [1] "word2vec"