Class CustomPassageFormatter

  • public class CustomPassageFormatter
    Custom passage formatter that allows us to: 1) extract different snippets (instead of a single big string) together with their scores (Snippet) 2) use the Encoder implementations that are already used with the other highlighters
    • Constructor Summary

      Constructor Description
      CustomPassageFormatter​(java.lang.String preTag, java.lang.String postTag, encoder)  
    • Method Summary

      Modifier and Type Method Description
      Snippet[] format​([] passages, java.lang.String content)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CustomPassageFormatter

        public CustomPassageFormatter​(java.lang.String preTag,
                                      java.lang.String postTag,
    • Method Detail

      • format

        public Snippet[] format​([] passages,
                                java.lang.String content)
        Specified by:
        format in class