IBM Information Integrator for Content V8.2 APIs

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.


Constructor Summary
DKIKFLanguageIdentifier(DKIKFService ikfService)
          Creates a new language identifier object.
 
Method Summary
 DKIKFLanguageIdentificationResult[] analyze(DKIKFTextDocument doc)
          determines the language of doc.
 int getMaxResults()
          Returns the maximum number of results.
 DKIKFService getService()
          Returns the current service.
 void setMaxResults(int maxResults)
          Set the maximum number of results to be returned.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DKIKFLanguageIdentifier

public DKIKFLanguageIdentifier(DKIKFService ikfService)
Creates a new language identifier object.
Method Detail

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

IBM Information Integrator for Content V8.2 APIs

© Copyright International Business Machines Corporation 1996, 2003 IBM Corp. All rights reserved.