Class WatsonLanguageConfiguration
java.lang.Object
org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanbooleanbooleanbooleanbooleanbooleanvoidsetAnalyzeCategories(boolean analyzeCategories) Enable category classificationvoidsetAnalyzeConcepts(boolean analyzeConcepts) Enable concept extractionvoidsetAnalyzeEmotion(boolean analyzeEmotion) Enable emotion analysisvoidsetAnalyzeEntities(boolean analyzeEntities) Enable entity extractionvoidsetAnalyzeKeywords(boolean analyzeKeywords) Enable keyword extractionvoidsetAnalyzeSentiment(boolean analyzeSentiment) Enable sentiment analysisvoidThe IBM Cloud API key for authenticationvoidsetOperation(WatsonLanguageOperations operation) The operation to performvoidsetServiceUrl(String serviceUrl) The service endpoint URL.
-
Constructor Details
-
WatsonLanguageConfiguration
public WatsonLanguageConfiguration()
-
-
Method Details
-
getApiKey
-
setApiKey
The IBM Cloud API key for authentication -
getServiceUrl
-
setServiceUrl
The service endpoint URL. If not specified, the default URL will be used. -
getOperation
-
setOperation
The operation to perform -
isAnalyzeSentiment
public boolean isAnalyzeSentiment() -
setAnalyzeSentiment
public void setAnalyzeSentiment(boolean analyzeSentiment) Enable sentiment analysis -
isAnalyzeEmotion
public boolean isAnalyzeEmotion() -
setAnalyzeEmotion
public void setAnalyzeEmotion(boolean analyzeEmotion) Enable emotion analysis -
isAnalyzeEntities
public boolean isAnalyzeEntities() -
setAnalyzeEntities
public void setAnalyzeEntities(boolean analyzeEntities) Enable entity extraction -
isAnalyzeKeywords
public boolean isAnalyzeKeywords() -
setAnalyzeKeywords
public void setAnalyzeKeywords(boolean analyzeKeywords) Enable keyword extraction -
isAnalyzeConcepts
public boolean isAnalyzeConcepts() -
setAnalyzeConcepts
public void setAnalyzeConcepts(boolean analyzeConcepts) Enable concept extraction -
isAnalyzeCategories
public boolean isAnalyzeCategories() -
setAnalyzeCategories
public void setAnalyzeCategories(boolean analyzeCategories) Enable category classification -
copy
-