The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Levenshtein Distance
So I have this file in my old version of RapidMiner (5.3):
C:\Program Files (x86)\Rapid-I\RapidMiner5\src\com\rapidminer\tools\math\similarity\nominal\LevenshteinDistance.java
When I open RapidMiner, there is no such operator or extension available, even though it exists in the RapidMiner5\ directory.
How do I access this package and/or operator to use Levenshtein Distance?
Thanks in advance for any help,
Tim
0
Answers
I'd ping @mschmitz here because he had a hand in creating that java class. I know it was developed for v7+ and it's probably not comptabible with v5.3.
Thomas, no, no that's the thing, IT IS THERE in my 5.3 install by default (i.e. I didn't add it). I saw the new one you're referencing and that's not the one I'm asking about.
Here is an old github link to it if it is helpful:
https://github.com/rapidminer/rapidminer-5/blob/master/src/com/rapidminer/tools/math/similarity/nominal/LevenshteinDistance.java
Since it is there, I'm simply trying to figure out how to use it.
Dear tmyers,
as far as i know this could only be used in an execute script.
Best,
Martin
Dortmund, Germany
Hi tmyers,
I don't know if this really helps your problem but there is now a RapidMiner Extension available called "Operator Toolbox". This contains an Operator named "Generate Levenshtein Distance". Perhaps this helps in your use case...
Best,
Edin
Thanks Martin. I've never used the Execute Script operator so I'm unsure how to do this. I just tried it by copying this text from the LevenshteinDistance.java file into the Edit Text parameter of the operator:
When I tried running it I got the following error message:
Am I trying this the right way? When I look at the code I presume I have to define attributes to use for "String value1" & "String value2".......?
Any advice you can offer on this Execute Script opertaor would be much appreciated!
Thanks,
Tim
Hi Edin. Yes, I am aware of the Operator Toolbox. Do you know if it works with RapidMiner version 7.1? I believe the marketplace indicates 7.3+ in terms of its compatibility.
Thanks,
Tim
Hi Tim,
Unfortunately the Operator Toolbox Extension is not compatible with 7.1. There were some API changes introduced in 7.3. Those changes are used in the Operator Toolbox.
Would it be possble for you to update to 7.3?
Best regards,
Fabian