🦉 🎤   RapidMiner Wisdom 2020 - CALL FOR SPEAKERS   🦉 🎤

We are inviting all community members to submit proposals to speak at Wisdom 2020 in Boston.


Whether it's a cool RapidMiner trick or a use case implementation, we want to see what you have.
Form link is below and deadline for submissions is November 15. See you in Boston!

CLICK HERE TO GO TO ENTRY FORM

running RM process as deamon

datasunnydatasunny Member Posts: 11 Contributor II
edited November 2018 in Help
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.
Tagged:

Answers

  • Marco_BoeckMarco_Boeck Team Lead Software Engineering Administrator, Moderator, Employee, Member, University Professor Posts: 1,811   RM Engineering
    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
Sign In or Register to comment.