com.ibm.mm.sdk.common.infomining.analysis
Class DKIKFLanguageIdentifier
java.lang.Object
|
+--com.ibm.mm.sdk.common.infomining.analysis.DKIKFLanguageIdentifier
- public class DKIKFLanguageIdentifier
- extends java.lang.Object
A language identifier can be used to determine the language in which a document is written.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DKIKFLanguageIdentifier
public DKIKFLanguageIdentifier(DKIKFService ikfService)
- Creates a new language identifier object.
getService
public DKIKFService getService()
- Returns the current service.
setMaxResults
public void setMaxResults(int maxResults)
- Set the maximum number of results to be returned.
getMaxResults
public int getMaxResults()
- Returns the maximum number of results.
analyze
public DKIKFLanguageIdentificationResult[] analyze(DKIKFTextDocument doc)
throws DKIKFDocumentProcessingException
- determines the language of
doc
. The result list is sorted starting with the
best matching language.
- Throws:
DKIKFAuthorizationException
- if the user or group does not have the privilege IKFRunAnalysisFunc
© Copyright International Business Machines Corporation 1996, 2003 IBM Corp. All rights reserved.