Class MultiValueTrigramFunction

java.lang.Object
com.aquima.interactions.dtree.impl.MultiValueTrigramFunction

public final class MultiValueTrigramFunction extends Object
Implementation of trigram matching.

For internal use only.

This can later be replaced with a decent match engine implementation.
Since:
5.1
Author:
F. van der Meer.
  • Constructor Details

    • MultiValueTrigramFunction

      public MultiValueTrigramFunction(String searchText)

      Constructs the multi-value trigram match function with the string that should be matched against. This function will split the provided string on whitespaces.

      Note: This method is public to allow test-cases to access it, but the class is internal and should not be used outside the decision tree engine.

      Parameters:
      searchText - The string that should be matched against.
  • Method Details

    • match

      public double match(String symptomText)

      This method will match the given string to the string this match function contains.

      Note: This method is public to allow test-cases to access it, but the class is internal and should not be used outside the decision tree engine.

      Parameters:
      symptomText - The string that should be matched.
      Returns:
      Double containing the result of the match, a percentage between zero and 100.