Hi there I am trying to calculate the max value of two columns using the Java Snippet node since I am using it to calculate two string similarity measures.
With the help of the forum members I managed to calculate the two measures separately, but I cannot “merge” both results in a single node.
You have a couple of things you need to fix. Firstly you have two objects with the same name “instance” so you’ll need to define these separately, e.g. jInstance and roInstance:
// Your custom variables:
Jaccard jInstance = new Jaccard(2);
RatcliffObershelp roInstance = new RatcliffObershelp();
then in your code section, reference these instances as follows: