🎉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

[SOLVED] Operator Input Problem

User: "johan_CG"
New Altair Community Member
Updated by Jocelyn
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

if (filter.isStopword(token.getToken()))
I removed the '!' in the if condition.
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
I also renamed all occurrences of "Stopword" and "Text Processing" by "Startword" using the refactor function of eclipse.

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

Find more posts tagged with