|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.demokritos.iit.summarization.selection.NoveltyBasedSelector<TSentenceType,TTokenType>
public class NoveltyBasedSelector<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 |
---|
protected java.lang.String PreexistingText
public SimilarityComparatorListener Comparator
public IObjectFilter<DocumentNGramGraph> SentenceRepresentationFilter
public int MaxSentencesSelected
Constructor Detail |
---|
public NoveltyBasedSelector()
public NoveltyBasedSelector(java.lang.String sPreexistingText)
Method Detail |
---|
protected void initComparator()
protected void initSentenceRepresentationFilter()
public void setPreexistingText(java.lang.String sNewPreexistingText)
dngNewInfo
- The new information.public java.util.List<TSentenceType> selectFromSentences(java.util.List<TSentenceType> sSentences)
ISentenceSelector
selectFromSentences
in interface ISentenceSelector<TSentenceType,TTokenType>
public boolean selectSentence(java.util.List<TTokenType> tokens)
ISentenceSelector
selectSentence
in interface ISentenceSelector<TSentenceType,TTokenType>
public double sentenceSelectionConfidence(java.util.List<TTokenType> tokens)
ISentenceSelector
sentenceSelectionConfidence
in interface ISentenceSelector<TSentenceType,TTokenType>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |