Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
[SOLVED] Operator Input Problem
Hello Everybody
As I explain in this post (http://rapid-i.com/rapidforum/index.php/topic,6340.0.html) I would like to filter documents using a list of word.
So I decided to create an operator doing the opposite of "Filter Stopwords (Dictionary)" by modifying the 74th line of StopwordFilterOperator.java
But my operator was in conflict with the real "Text Processing Operator".
So I modified the following files to avoid the conflict:
Unfortunatly now I've got the following error in RapidMiner when I try to use my operator:
Can somebody helps me please?
Many thanks in advance
Johan
As I explain in this post (http://rapid-i.com/rapidforum/index.php/topic,6340.0.html) I would like to filter documents using a list of word.
So I decided to create an operator doing the opposite of "Filter Stopwords (Dictionary)" by modifying the 74th line of StopwordFilterOperator.java
I removed the '!' in the if condition.
if (filter.isStopword(token.getToken()))
But my operator was in conflict with the real "Text Processing Operator".
So I modified the following files to avoid the conflict:
- OperatorsStartword.xml
- OperatorsDocStartword.xml
- build.xml
Unfortunatly now I've got the following error in RapidMiner when I try to use my operator:
???
Expected Document but received Document.
Can somebody helps me please?
Many thanks in advance
Johan
Tagged:
0
Answers
Hth, gabor
Thank you for your reply.
I'm very new in RapidMiner use so I'm not familiar with the classloaders and the dependencies management.
Can you tell me where I may find the document classes or the java classe names?
Thanks in advance
Johan
Finally I adopted an other approach.
I give up the idea of create my own extension and simply add my operator to the existing "Text Processing Extension" in only 3 steps. 8)
Thank you Gabor for the idea ;D
Regards
Johan
I am sorry I cannot. I have never done that before, it was just an idea. I hope someone else can help you or you find a solution.
Cheers, gabor
I have developed a new FilterStopwords operator and successfully loaded it in RapidMiner, but when I try to run the process, I got the same error what you have got.
Expected Document but received Document.
Can you please elaborate how you have resolved this issue?
Thanks!
most likely the reason for this to happen is that an extension bundles the class files from all libs it requires into the extension jar file. So if you depend on the text extension, make sure it is available not as a .jar library but rather as a project itself. Otherwise you will end up with all class files of the text extension in your jar so when every extension is loaded by Studio, the class files of the text extension exist twice. And that generates exactly the error you are getting.
Regards,
Marco
Yes I have added the text mining extension as jar in the lib folder of my project. From where can I get the Text-Mining extension project?
Thank you for your assistance Sir.
Aniee
for example here: http://svn.code.sf.net/p/rapidminer/code/Plugins/TextProcessing/Unuk/
Regards,
Marco