The R code I have is as following, it results an error as below. However, this works fine on my windows local machine. Just error on ubuntu server as below.The generated model.bin file is about 229 MB on my windows local machine. Not sure why I cannot train the model on Ubuntu server, any help would be appreciated!
library(fastrtext)
model_file <- build_supervised(documents = data1[["V5"]],
targets = data1[["V3"]],
model_path = '/srv/shiny-server/text_cls/voc_single/mymodel',
dim = 30, lr = 0.1, epoch = 30, wordNgrams = 2)
Prepare and write tempfile at ... /tmp/RtmpLMf0uE/file9083d9d7650
Starting supervised training with following commands:
$ supervised -input /tmp/RtmpLMf0uE/file9083d9d7650 -output /srv/shiny-server/text_cls/voc_single/mymodel -lr 0.1 -dim 30 -ws 5 -epoch 30 -minCount 5 -minCountLabel 0 -neg 5 -wordNgrams 2 -loss ns -bucket 2000000 -minn 3 -maxn 6 -thread 12 -lrUpdateRate 100 -t 0.0001 -label __label__ -verbose 2
Error in model$execute(c("fasttext", commands)) :
/srv/shiny-server/text_cls/voc_single/mymodel.bin cannot be opened for saving.