Class ExampleMatcher


  • public class ExampleMatcher
    extends Object
    Matches the generated examples as defined.
    Author:
    burgetr
    • Method Detail

      • match

        public boolean match​(String rawText,
                             Consumer<List<Example>> op)
        Matches the configured examples to the given text and applies a consumer function on the matched examples (if any).
        Parameters:
        rawText - the raw text to match
        op - the consumer function to be applied on the matched examples
        Returns:
        true if something has matched, false otherwise