|
IBM Information Integrator for Content V8.2 APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mm.sdk.common.infomining.analysis.DKIKFSummarizer
A summarizer can be used to create summaries for documents.
Field Summary | |
static int |
MODE_EQUALS_RATIO
return exactly ( ratio * total number of sentences)
many sentences. |
static int |
MODE_EQUALS_RATIO_AND_LESS_THAN_MAXLENGTH
return at least ( ratio * total number of sentences), but
at most maxLength many sentences. |
static int |
MODE_LESS_THAN_MAXLENGTH
return at most maxLength many sentences. |
Constructor Summary | |
DKIKFSummarizer(DKIKFService ikfService)
Creates a new summarizer object. |
Method Summary | |
DKIKFSummarizationResult |
analyze(DKIKFTextDocument doc)
summarizes doc . |
int |
getMaxLength()
get maximal number of sentences in summary. |
int |
getMode()
get summarizarion mode (see public fields). |
float |
getRatio()
get sentence ratio. |
DKIKFService |
getService()
Returns the current service. |
void |
setMaxLength(int maxLength)
set maximal number of sentences in summary. |
void |
setMode(int mode)
set summarization mode (see public fields). |
void |
setRatio(float ratio)
set sentence ratio. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int MODE_LESS_THAN_MAXLENGTH
maxLength
many sentences.public static final int MODE_EQUALS_RATIO
ratio
* total number of sentences)
many sentences.public static final int MODE_EQUALS_RATIO_AND_LESS_THAN_MAXLENGTH
ratio
* total number of sentences), but
at most maxLength
many sentences.Constructor Detail |
public DKIKFSummarizer(DKIKFService ikfService)
Method Detail |
public DKIKFService getService()
public int getMaxLength()
public float getRatio()
public int getMode()
public void setMaxLength(int maxLength)
public void setRatio(float ratio)
public void setMode(int mode)
public DKIKFSummarizationResult analyze(DKIKFTextDocument doc) throws DKIKFUnsupportedLanguageException, DKIKFDocumentProcessingException
doc
.DKIKFDocumentLanguageNotSetException
- if the sepecified document has no languageDKIKFUnsupportedLanguageException
- if the document language is not supportedDKIKFDocumentProcessingException
- if an error occours durin processingDKIKFAuthorizationException
- if the user or group does not have the privilege IKFRunAnalysisFunc
|
IBM Information Integrator for Content V8.2 APIs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |