net.sf.classifier4J.summariser
Class SimpleSummariser

java.lang.Object
  |
  +--net.sf.classifier4J.summariser.SimpleSummariser
All Implemented Interfaces:
ISummariser

public class SimpleSummariser
extends java.lang.Object
implements ISummariser


Constructor Summary
SimpleSummariser()
           
 
Method Summary
protected  java.util.Set getMostFrequentWords(int count, java.util.Map wordFrequencies)
           
 java.lang.String summarise(java.lang.String input, int numSentences)
          Extract a summary from a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSummariser

public SimpleSummariser()
Method Detail

getMostFrequentWords

protected java.util.Set getMostFrequentWords(int count,
                                             java.util.Map wordFrequencies)

summarise

public java.lang.String summarise(java.lang.String input,
                                  int numSentences)
Description copied from interface: ISummariser
Extract a summary from a string

Specified by:
summarise in interface ISummariser
Parameters:
input - A String
numSentences - The number of sentences the summary should be
Returns:
A summary
See Also:
net.sf.classifier4J.summariser.ISummariser#summarise(java.lang.String)


Copyright © 2003-2005 Nick Lothian. All Rights Reserved.