gr.demokritos.iit.summarization.selection
Class NoveltyBasedSelector<TSentenceType,TTokenType>

java.lang.Object
  extended by gr.demokritos.iit.summarization.selection.NoveltyBasedSelector<TSentenceType,TTokenType>
All Implemented Interfaces:
ISentenceSelector<TSentenceType,TTokenType>
Direct Known Subclasses:
RedundancyBasedSelector

public class NoveltyBasedSelector<TSentenceType,TTokenType>
extends java.lang.Object
implements ISentenceSelector<TSentenceType,TTokenType>

Chooses sentences based on the novelty of the provided information, given an existing information document graph.


Field Summary
 SimilarityComparatorListener Comparator
          Comparator for the representations.
 int MaxSentencesSelected
          The maximum number of sentences to select.
protected  java.lang.String PreexistingText
          Pre-existing information text.
 IObjectFilter<DocumentNGramGraph> SentenceRepresentationFilter
          Representation filter.
 
Constructor Summary
NoveltyBasedSelector()
           
NoveltyBasedSelector(java.lang.String sPreexistingText)
           
 
Method Summary
protected  void initComparator()
          Makes sure the comparator is not null.
protected  void initSentenceRepresentationFilter()
          Makes sure the representation filter is not null.
 java.util.List<TSentenceType> selectFromSentences(java.util.List<TSentenceType> sSentences)
          Selects a sentence subset of a given sentence set.
 boolean selectSentence(java.util.List<TTokenType> tokens)
          Returns whether the given sentence (token list) should be selected.
 double sentenceSelectionConfidence(java.util.List<TTokenType> tokens)
          Returns a confidence measure of whether the given sentence (token list) should be selected.
 void setPreexistingText(java.lang.String sNewPreexistingText)
          Replaces pre-existing info with a new set of information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PreexistingText

protected java.lang.String PreexistingText
Pre-existing information text.


Comparator

public SimilarityComparatorListener Comparator
Comparator for the representations.


SentenceRepresentationFilter

public IObjectFilter<DocumentNGramGraph> SentenceRepresentationFilter
Representation filter. If not null, then the graph representation of each sentence passes through the filter before being used.


MaxSentencesSelected

public int MaxSentencesSelected
The maximum number of sentences to select.

Constructor Detail

NoveltyBasedSelector

public NoveltyBasedSelector()

NoveltyBasedSelector

public NoveltyBasedSelector(java.lang.String sPreexistingText)
Method Detail

initComparator

protected void initComparator()
Makes sure the comparator is not null.


initSentenceRepresentationFilter

protected void initSentenceRepresentationFilter()
Makes sure the representation filter is not null.


setPreexistingText

public void setPreexistingText(java.lang.String sNewPreexistingText)
Replaces pre-existing info with a new set of information.

Parameters:
dngNewInfo - The new information.

selectFromSentences

public java.util.List<TSentenceType> selectFromSentences(java.util.List<TSentenceType> sSentences)
Description copied from interface: ISentenceSelector
Selects a sentence subset of a given sentence set.

Specified by:
selectFromSentences in interface ISentenceSelector<TSentenceType,TTokenType>

selectSentence

public boolean selectSentence(java.util.List<TTokenType> tokens)
Description copied from interface: ISentenceSelector
Returns whether the given sentence (token list) should be selected.

Specified by:
selectSentence in interface ISentenceSelector<TSentenceType,TTokenType>

sentenceSelectionConfidence

public double sentenceSelectionConfidence(java.util.List<TTokenType> tokens)
Description copied from interface: ISentenceSelector
Returns a confidence measure of whether the given sentence (token list) should be selected.

Specified by:
sentenceSelectionConfidence in interface ISentenceSelector<TSentenceType,TTokenType>