🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

running RM process as deamon

User: "datasunny"
New Altair Community Member
Updated by Jocelyn
I'm writing a text classification process. A SVM model and wordlist are pre-generated. Since loading the model and wordlist takes some time, i'm wondering what's the best way to deamonize the process. That is, loading model/wordlist just once, process any incoming documents as needed.
Thanks.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Marco_Boeck"
    New Altair Community Member
    Hi,

    I suggest creating a process which loads the model and the wordlist and returns them as outputs, and then just store them as IOObjects in your code. Then you can create your other processes which take the model and the wordlist as inputs, and then you can pass them to your other processes via

    IOContainer ioInput = new IOContainer(new IOObject[]{ model, wordlist });
    IOContainer ioResult = process.run(ioInput);
    Regards,
    Marco