Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

(no subject)

  • Fathzer
    Fathzer
    2013-12-12

    I'm not sure to understand the need.

    It seems like you're looking for a class that evaluates expressions like: "contains(x,'java') && contains(x,'hadoop') && contains(x,'big data') || contains(x,'analytic') && !contains(x,'recruiting'). Where x is a variable (see http://javaluator.soft.fathzer.com/en/doc/tutorial.php?chapter=variables) containing a text like "I am a java programmer.\nRead about hadoop.\nDoing big data right now."

    You can implement such a thing using a custom evaluator (see http://javaluator.soft.fathzer.com/en/doc/tutorial.php?chapter=creatingSimple). It should implements a 'contains' function (see http://javaluator.soft.fathzer.com/en/doc/tutorial.php?chapter=extending to see how to implement functions). It should work not only on boolean, but also on strings ('recruiting', 'analytics', etc... are not booleans).

    After thinking about it:
    - If you're trying to evaluate a text ranking, probably a boolean function is not the best solution (usually this kind of functionnalities works with probabilities).
    - If someone is interested in writing a 'excel like' evaluator, dealing with boolean, string, numbers, date, etc... I would be very happy to publish that class in a separate jar (to keep core javaluator small).

     
    Last edit: Fathzer 2014-05-27