我怎么能访问com.rapidminer.operator.text.Document in Java?


Hi all,
my process outputs JSON with theData to JSONfrom the Text Processing Extension/Plugin.
I want tocastthe outputioResult.getElementAt(0)to thiscom.rapidminer.operator.text.Documentso I can access the JSON string.
I can't perform that cast because the class is not known. I don't have the jar files apparently (Intellij can't find it).
Whatgradle dependenciesshould be added so I can access code that is added as an extension/plugin to Rapidminer Studio?
Or is there another solution to this problem?
Kind regards,
Wouter
Best Answer
-
DekwoKybon MemberPosts:9
Contributor II
I have solved my problem.
I found the JAR file on Rapid Miner Marketplace
https://marketplace.www.turtlecreekpls.com/UpdateServer/faces/product_details.xhtml?productId=rmx_textAfter downloading the JAR file and adding it as a local dependency in my Gradle build.gradle file
compile files('/opt/rapidminer/lib/plugins/rmx_text-ANY-7.5.0.jar')
Now, I can downcast the ioResult to com.rapidminer.operator.text.Document and access the JSON content :-)
Wouter
1