Issue with training text classification model in R on Ubuntu server 18.04How do file permissions...

Realistic Necromancy?

Why does processed meat contain preservatives, while canned fish needs not?

Why was the Spitfire's elliptical wing almost uncopied by other aircraft of World War 2?

Why does nature favour the Laplacian?

A Strange Latex Symbol

What makes accurate emulation of old systems a difficult task?

What happened to Captain America in Endgame?

Pulling the rope with one hand is as heavy as with two hands?

What does the "ep" capability mean?

How to stop co-workers from teasing me because I know Russian?

Is the claim "Employers won't employ people with no 'social media presence'" realistic?

a sore throat vs a strep throat vs strep throat

Examples of subgroups where it's nontrivial to show closure under multiplication?

Why other Westeros houses don't use wildfire?

How come there are so many candidates for the 2020 Democratic party presidential nomination?

Why was Germany not as successful as other Europeans in establishing overseas colonies?

Is it possible to determine the symmetric encryption method used by output size?

To say I met a person for the first time

Does a semiconductor follow Ohm's law?

How much cash can I safely carry into the USA and avoid civil forfeiture?

How do I deal with a coworker that keeps asking to make small superficial changes to a report, and it is seriously triggering my anxiety?

Symbolic Multivariate Distribution

Is the 5 MB static resource size limit 5,242,880 bytes or 5,000,000 bytes?

Why isn't the definition of absolute value applied when squaring a radical containing a variable?



Issue with training text classification model in R on Ubuntu server 18.04


How do file permissions work?Connection Issue with Ubuntu Server 12.04 LTSUbuntu server login text messageinstalling R in Ubuntu…issueBootloader issue with Ubuntu 16.04 LTS serverubuntu server bind issueNetwork Setup with 18.04 serverUbuntu desktop 18.04 to ServerNetworking Issue - Ubuntu 18.04Postfiix startup issue ubuntu server after upgrade to 18.04Ubuntu server issue






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















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.









share|improve this question









New contributor




Jason is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Sounds like a basic file ownership/permissions issue - see How do file permissions work?

    – steeldriver
    11 hours ago


















0















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.









share|improve this question









New contributor




Jason is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Sounds like a basic file ownership/permissions issue - see How do file permissions work?

    – steeldriver
    11 hours ago














0












0








0








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.









share|improve this question









New contributor




Jason is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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.






server r






share|improve this question









New contributor




Jason is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Jason is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 15 hours ago









Soren A

3,57111024




3,57111024






New contributor




Jason is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 16 hours ago









JasonJason

1




1




New contributor




Jason is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Jason is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Jason is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Sounds like a basic file ownership/permissions issue - see How do file permissions work?

    – steeldriver
    11 hours ago



















  • Sounds like a basic file ownership/permissions issue - see How do file permissions work?

    – steeldriver
    11 hours ago

















Sounds like a basic file ownership/permissions issue - see How do file permissions work?

– steeldriver
11 hours ago





Sounds like a basic file ownership/permissions issue - see How do file permissions work?

– steeldriver
11 hours ago










1 Answer
1






active

oldest

votes


















0














can you show us the authorization settings with the following command



sudo ls -l /srv/shiny-server/text_cls/voc_single/mymodel.bin


You can fix the authorization issues by authorizing your user to edit that file



sudo chown yourusername /srv/shiny-server/text_cls/voc_single/mymodel.bin
sudo chmod 700 /srv/shiny-server/text_cls/voc_single/mymodel.bin





share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Jason is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138540%2fissue-with-training-text-classification-model-in-r-on-ubuntu-server-18-04%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    can you show us the authorization settings with the following command



    sudo ls -l /srv/shiny-server/text_cls/voc_single/mymodel.bin


    You can fix the authorization issues by authorizing your user to edit that file



    sudo chown yourusername /srv/shiny-server/text_cls/voc_single/mymodel.bin
    sudo chmod 700 /srv/shiny-server/text_cls/voc_single/mymodel.bin





    share|improve this answer




























      0














      can you show us the authorization settings with the following command



      sudo ls -l /srv/shiny-server/text_cls/voc_single/mymodel.bin


      You can fix the authorization issues by authorizing your user to edit that file



      sudo chown yourusername /srv/shiny-server/text_cls/voc_single/mymodel.bin
      sudo chmod 700 /srv/shiny-server/text_cls/voc_single/mymodel.bin





      share|improve this answer


























        0












        0








        0







        can you show us the authorization settings with the following command



        sudo ls -l /srv/shiny-server/text_cls/voc_single/mymodel.bin


        You can fix the authorization issues by authorizing your user to edit that file



        sudo chown yourusername /srv/shiny-server/text_cls/voc_single/mymodel.bin
        sudo chmod 700 /srv/shiny-server/text_cls/voc_single/mymodel.bin





        share|improve this answer













        can you show us the authorization settings with the following command



        sudo ls -l /srv/shiny-server/text_cls/voc_single/mymodel.bin


        You can fix the authorization issues by authorizing your user to edit that file



        sudo chown yourusername /srv/shiny-server/text_cls/voc_single/mymodel.bin
        sudo chmod 700 /srv/shiny-server/text_cls/voc_single/mymodel.bin






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 5 hours ago









        Fabrizio BertoglioFabrizio Bertoglio

        118




        118






















            Jason is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Jason is a new contributor. Be nice, and check out our Code of Conduct.













            Jason is a new contributor. Be nice, and check out our Code of Conduct.












            Jason is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1138540%2fissue-with-training-text-classification-model-in-r-on-ubuntu-server-18-04%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Is there a lightweight tool to crop images quickly?Cropping Images using Command Line Tools OnlyHow to crop...

            Unit packagekit.service is masked Announcing the arrival of Valued Associate #679: Cesar...

            List of shipwrecks in 1808...