Class Summariser

  • Direct Known Subclasses:
    DefaultSummariser

    public abstract class Summariser
    extends java.lang.Object
    Base class for query biased summarisers.
    Since:
    3.6
    • Constructor Summary

      Constructors 
      Constructor Description
      Summariser()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract java.lang.String generateSummary​(java.lang.String extract, java.lang.String[] queryTerms)
      Returns the query biased summary extracted from the sample of the text of the document, based on the query terms.
      static Summariser getSummariser()
      Obtain an instance of the current default summarised
      • Methods inherited from class java.lang.Object

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

      • Summariser

        public Summariser()
    • Method Detail

      • generateSummary

        public abstract java.lang.String generateSummary​(java.lang.String extract,
                                                         java.lang.String[] queryTerms)
        Returns the query biased summary extracted from the sample of the text of the document, based on the query terms.
        Parameters:
        extract - sample of document text
        queryTerms -
        Returns:
        Query biased summary.
      • getSummariser

        public static Summariser getSummariser()
        Obtain an instance of the current default summarised