No operator description object
Hi,
I have to write a Java-Application for my master-thesis where I want to apply a model (which I created before in the RM GUI as "output_type" binary) to some texts, but I got the error-message below. I use
rapidminer.jar (version 4.1) and rapidminer-text-4.1.jar, which I have in my classpath, but I have also tested it with the current CVS-Version. I don't understand the message because the code works fine with the wvtool-operators "StringTokenizer", etc. but not with the rapidminer-operators "ModelApplier" and "ModelLoader"??
Hope someone can give me an advise. I'm despaired because it's very important for me that it works.
******************************
[java] G May 24, 2008 11:35:21 AM: Loading operators from 'operators.xml'.
[java] G May 24, 2008 11:35:22 AM: Loading JDBC driver information from 'resources:jdbc_properties.xml'.
[java] Exception in thread "main" com.rapidminer.operator.OperatorCreationException: No operator description object given for 'ModelApplier'
[java] at com.rapidminer.tools.OperatorService.createOperator(OperatorService.java:465)
[java] at tagger.test.RapidMinerTextClassifier.<init>(Unknown Source)
[java] at tagger.test.RapidMinerTextClassifier.main(Unknown Source)
******************************
Greetings,
Danii
I have to write a Java-Application for my master-thesis where I want to apply a model (which I created before in the RM GUI as "output_type" binary) to some texts, but I got the error-message below. I use
rapidminer.jar (version 4.1) and rapidminer-text-4.1.jar, which I have in my classpath, but I have also tested it with the current CVS-Version. I don't understand the message because the code works fine with the wvtool-operators "StringTokenizer", etc. but not with the rapidminer-operators "ModelApplier" and "ModelLoader"??
Hope someone can give me an advise. I'm despaired because it's very important for me that it works.
******************************
[java] G May 24, 2008 11:35:21 AM: Loading operators from 'operators.xml'.
[java] G May 24, 2008 11:35:22 AM: Loading JDBC driver information from 'resources:jdbc_properties.xml'.
[java] Exception in thread "main" com.rapidminer.operator.OperatorCreationException: No operator description object given for 'ModelApplier'
[java] at com.rapidminer.tools.OperatorService.createOperator(OperatorService.java:465)
[java] at tagger.test.RapidMinerTextClassifier.<init>(Unknown Source)
[java] at tagger.test.RapidMinerTextClassifier.main(Unknown Source)
******************************
...
RapidMiner.init();
//RapidMiner.init(false, false, false, true);
OperatorChain wvtoolOperator = (OperatorChain) OperatorService.createOperator("SingleTextInput");
wvtoolOperator.setParameter("input_word_list", wordListFile.getAbsolutePath());
wvtoolOperator.addOperator(OperatorService.createOperator("StringTokenizer"));
wvtoolOperator.addOperator(OperatorService.createOperator("PorterStemmer"));
// Create the model applier and load the model into a field of the class
Operator modelApplier = OperatorService.createOperator("ModelApplier");
Operator modelLoader = OperatorService.createOperator("ModelLoader");
modelLoader.setParameter("model_file", modelFile.getAbsolutePath());
IOContainer container = modelLoader.apply(new IOContainer());
Model model = container.get(Model.class);
...
Greetings,
Danii