This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit ac418e0b516d2fc2ee2e5907447983e8eba91752 Author: Claus Ibsen <[email protected]> AuthorDate: Fri Nov 27 17:07:02 2026 +0100 CAMEL-23832: camel-ibm-watson-language - improve the component and option descriptions This commit rewrites the component description, the texts of 11 options (the shared configuration, its 9 options and the label path) and of the 12 headers of ibm-watson-language. The old texts were one-word stubs such as "Enable entity extraction". The new ones say which header replaces each option, what each analysis feature returns, the default service URL of the SDK, that emotion analysis supports English only, and when the producer sets the result headers. Documentation only, no behavior change. The component JSON, the catalog copy, the doc page header and the DSL are regenerated. camel-ibm-watson-language is marked as done in tasks/component-descriptions.md. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../catalog/components/ibm-watson-language.json | 66 +++++------ .../docs/ibm-watson-language-component.adoc | 4 +- .../ibm/watson/language/ibm-watson-language.json | 66 +++++------ .../main/docs/ibm-watson-language-component.adoc | 4 +- .../watson/language/WatsonLanguageComponent.java | 6 +- .../language/WatsonLanguageConfiguration.java | 70 ++++++----- .../watson/language/WatsonLanguageConstants.java | 40 +++++-- .../watson/language/WatsonLanguageEndpoint.java | 4 +- .../component/ComponentsBuilderFactory.java | 4 +- .../IbmWatsonLanguageComponentBuilderFactory.java | 49 +++++--- .../builder/endpoint/EndpointHeaderBuilders.java | 4 +- .../builder/endpoint/StaticEndpointBuilders.java | 12 +- .../dsl/WatsonLanguageEndpointBuilderFactory.java | 128 ++++++++++++++------- tasks/component-descriptions.md | 2 +- 14 files changed, 268 insertions(+), 191 deletions(-) diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watson-language.json b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watson-language.json index 253576ad464e..250aa7985716 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watson-language.json +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/ibm-watson-language.json @@ -3,7 +3,7 @@ "kind": "component", "name": "ibm-watson-language", "title": "IBM Watson Language", - "description": "Perform natural language processing using IBM Watson Natural Language Understanding", + "description": "Analyze text and web pages with IBM Watson Natural Language Understanding.", "deprecated": true, "firstVersion": "4.16.0", "label": "ai,cloud", @@ -24,50 +24,50 @@ "remote": true }, "componentProperties": { - "serviceUrl": { "index": 0, "kind": "property", "displayName": "Service Url", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The service endpoint URL. If not specified, the default URL will be used." }, - "analyzeCategories": { "index": 1, "kind": "property", "displayName": "Analyze Categories", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable category classification" }, - "analyzeConcepts": { "index": 2, "kind": "property", "displayName": "Analyze Concepts", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable concept extraction" }, - "analyzeEmotion": { "index": 3, "kind": "property", "displayName": "Analyze Emotion", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable emotion analysis" }, - "analyzeEntities": { "index": 4, "kind": "property", "displayName": "Analyze Entities", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable entity extraction" }, - "analyzeKeywords": { "index": 5, "kind": "property", "displayName": "Analyze Keywords", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable keyword extraction" }, - "analyzeSentiment": { "index": 6, "kind": "property", "displayName": "Analyze Sentiment", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable sentiment analysis" }, - "configuration": { "index": 7, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration" }, + "serviceUrl": { "index": 0, "kind": "property", "displayName": "Service Url", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The URL of the Natural Language Understanding service instance, as given in its service cr [...] + "analyzeCategories": { "index": 1, "kind": "property", "displayName": "Analyze Categories", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the categories of the content in a hie [...] + "analyzeConcepts": { "index": 2, "kind": "property", "displayName": "Analyze Concepts", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the high-level concepts of the content, wh [...] + "analyzeEmotion": { "index": 3, "kind": "property", "displayName": "Analyze Emotion", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the emotions of the whole document: a score [...] + "analyzeEntities": { "index": 4, "kind": "property", "displayName": "Analyze Entities", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the entities, such as people, cities and or [...] + "analyzeKeywords": { "index": 5, "kind": "property", "displayName": "Analyze Keywords", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the important keywords of the content. The [...] + "analyzeSentiment": { "index": 6, "kind": "property", "displayName": "Analyze Sentiment", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the sentiment of the whole document. The [...] + "configuration": { "index": 7, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration shared by the endpoints. Each endpoint starts from a copy of it, and its endpoint options replace single values." }, "lazyStartProducer": { "index": 8, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...] - "operation": { "index": 9, "kind": "property", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations", "enum": [ "analyzeText", "analyzeUrl" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "descriptio [...] + "operation": { "index": 9, "kind": "property", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations", "enum": [ "analyzeText", "analyzeUrl" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "descriptio [...] "autowiredEnabled": { "index": 10, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching [...] "healthCheckConsumerEnabled": { "index": 11, "kind": "property", "displayName": "Health Check Consumer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all consumer based health checks from this component" }, "healthCheckProducerEnabled": { "index": 12, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on produce [...] - "apiKey": { "index": 13, "kind": "property", "displayName": "Api Key", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key for authentication" } + "apiKey": { "index": 13, "kind": "property", "displayName": "Api Key", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key of the Natural Language Understanding service insta [...] }, "headers": { - "CamelIBMWatsonLanguageOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The operation to perform", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#OPERATION" }, - "CamelIBMWatsonLanguageText": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The text to analyze", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#TEXT" }, - "CamelIBMWatsonLanguageUrl": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The URL to analyze", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#URL" }, - "CamelIBMWatsonLanguageAnalyzeSentiment": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable sentiment analysis", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_SENTIMENT" }, - "CamelIBMWatsonLanguageAnalyzeEmotion": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable emotion analysis", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_EMOTION" }, - "CamelIBMWatsonLanguageAnalyzeEntities": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable entity extraction", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_ENTITIES" }, - "CamelIBMWatsonLanguageAnalyzeKeywords": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable keyword extraction", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_KEYWORDS" }, - "CamelIBMWatsonLanguageAnalyzeConcepts": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable concept extraction", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_CONCEPTS" }, - "CamelIBMWatsonLanguageAnalyzeCategories": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable category classification", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_CATEGORIES" }, - "CamelIBMWatsonLanguageLanguage": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The language of the text", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#LANGUAGE" }, - "CamelIBMWatsonLanguageSentimentScore": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Double", "deprecated": false, "autowired": false, "secret": false, "description": "The sentiment score", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#SENTIMENT_SCORE" }, - "CamelIBMWatsonLanguageSentimentLabel": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The sentiment label (positive, negative, neutral)", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#SENTIMENT_LABEL" } + "CamelIBMWatsonLanguageOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The operation to perform, analyzeText or analyzeUrl. It replaces the operation option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#OPERATION" }, + "CamelIBMWatsonLanguageText": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The text to analyze for analyzeText. If not set, the producer analyzes the message body.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#TEXT" }, + "CamelIBMWatsonLanguageUrl": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The URL of the web page to analyze for analyzeUrl, which the service retrieves. If not set, the producer reads the URL from the message body.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#URL" }, + "CamelIBMWatsonLanguageAnalyzeSentiment": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the sentiment of the document. It replaces the analyzeSentiment option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_SENTIMENT" }, + "CamelIBMWatsonLanguageAnalyzeEmotion": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the emotions of the document. It replaces the analyzeEmotion option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_EMOTION" }, + "CamelIBMWatsonLanguageAnalyzeEntities": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the entities of the content. It replaces the analyzeEntities option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_ENTITIES" }, + "CamelIBMWatsonLanguageAnalyzeKeywords": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the keywords of the content. It replaces the analyzeKeywords option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_KEYWORDS" }, + "CamelIBMWatsonLanguageAnalyzeConcepts": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the concepts of the content. It replaces the analyzeConcepts option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_CONCEPTS" }, + "CamelIBMWatsonLanguageAnalyzeCategories": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the categories of the content. It replaces the analyzeCategories option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_CATEGORIES" }, + "CamelIBMWatsonLanguageLanguage": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ISO 639-1 code of the language that the service detected and used for the analysis, for example en. The producer sets it after each analysis.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#LANGUAGE" }, + "CamelIBMWatsonLanguageSentimentScore": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Double", "deprecated": false, "autowired": false, "secret": false, "description": "The sentiment score of the whole document, from -1 (negative) to 1 (positive). The producer sets it when sentiment is requested.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#SENTIMENT_SCORE" }, + "CamelIBMWatsonLanguageSentimentLabel": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The sentiment label of the whole document: positive, neutral or negative. The producer sets it when sentiment is requested.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#SENTIMENT_LABEL" } }, "bodyTypes": { "producerIn": { "carriers": [ "any" ], "description": "The text to analyze for analyzeText, or the URL of the page for analyzeUrl, read as text, unless the CamelIBMWatsonLanguageText or CamelIBMWatsonLanguageUrl header gives it. Without the header, no body or a blank one fails, and a Map or a POJO is analyzed as its toString(): marshal it first" }, "producerOut": { "carriers": [ "pojo" ], "javaType": "com.ibm.watson.natural_language_understanding.v1.model.AnalysisResults", "description": "The results of the features enabled (sentiment, entities, keywords and so on), with the sentiment score and label and the language in headers too. Converted to text, it is the JSON of the results" } }, "properties": { - "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Logical name" }, - "serviceUrl": { "index": 1, "kind": "parameter", "displayName": "Service Url", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The service endpoint URL. If not specified, the default URL will be used." }, - "analyzeCategories": { "index": 2, "kind": "parameter", "displayName": "Analyze Categories", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable category classification" }, - "analyzeConcepts": { "index": 3, "kind": "parameter", "displayName": "Analyze Concepts", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable concept extraction" }, - "analyzeEmotion": { "index": 4, "kind": "parameter", "displayName": "Analyze Emotion", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable emotion analysis" }, - "analyzeEntities": { "index": 5, "kind": "parameter", "displayName": "Analyze Entities", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable entity extraction" }, - "analyzeKeywords": { "index": 6, "kind": "parameter", "displayName": "Analyze Keywords", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable keyword extraction" }, - "analyzeSentiment": { "index": 7, "kind": "parameter", "displayName": "Analyze Sentiment", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable sentiment analysis" }, - "operation": { "index": 8, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations", "enum": [ "analyzeText", "analyzeUrl" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "descripti [...] + "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "A name of your choice for the endpoint. The component does not use it." }, + "serviceUrl": { "index": 1, "kind": "parameter", "displayName": "Service Url", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The URL of the Natural Language Understanding service instance, as given in its service c [...] + "analyzeCategories": { "index": 2, "kind": "parameter", "displayName": "Analyze Categories", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the categories of the content in a hi [...] + "analyzeConcepts": { "index": 3, "kind": "parameter", "displayName": "Analyze Concepts", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the high-level concepts of the content, w [...] + "analyzeEmotion": { "index": 4, "kind": "parameter", "displayName": "Analyze Emotion", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the emotions of the whole document: a score [...] + "analyzeEntities": { "index": 5, "kind": "parameter", "displayName": "Analyze Entities", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the entities, such as people, cities and o [...] + "analyzeKeywords": { "index": 6, "kind": "parameter", "displayName": "Analyze Keywords", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the important keywords of the content. The [...] + "analyzeSentiment": { "index": 7, "kind": "parameter", "displayName": "Analyze Sentiment", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the sentiment of the whole document. The [...] + "operation": { "index": 8, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations", "enum": [ "analyzeText", "analyzeUrl" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "descripti [...] "lazyStartProducer": { "index": 9, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...] - "apiKey": { "index": 10, "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key for authentication" } + "apiKey": { "index": 10, "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key of the Natural Language Understanding service inst [...] } } diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watson-language-component.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watson-language-component.adoc index 2b716f4ce619..2a137d171f33 100644 --- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watson-language-component.adoc +++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/ibm-watson-language-component.adoc @@ -2,7 +2,7 @@ :doctitle: IBM Watson Language :shortname: ibm-watson-language :artifactid: camel-ibm-watson-language -:description: Perform natural language processing using IBM Watson Natural Language Understanding +:description: Analyze text and web pages with IBM Watson Natural Language Understanding. :since: 4.16 :supportlevel: Stable-deprecated :deprecated: *deprecated* @@ -349,5 +349,3 @@ Maven users will need to add the following dependency to their `pom.xml`. --------------------------------------- where `x.x.x` is the version number of Camel. - - diff --git a/components/camel-ibm/camel-ibm-watson-language/src/generated/resources/META-INF/org/apache/camel/component/ibm/watson/language/ibm-watson-language.json b/components/camel-ibm/camel-ibm-watson-language/src/generated/resources/META-INF/org/apache/camel/component/ibm/watson/language/ibm-watson-language.json index 253576ad464e..250aa7985716 100644 --- a/components/camel-ibm/camel-ibm-watson-language/src/generated/resources/META-INF/org/apache/camel/component/ibm/watson/language/ibm-watson-language.json +++ b/components/camel-ibm/camel-ibm-watson-language/src/generated/resources/META-INF/org/apache/camel/component/ibm/watson/language/ibm-watson-language.json @@ -3,7 +3,7 @@ "kind": "component", "name": "ibm-watson-language", "title": "IBM Watson Language", - "description": "Perform natural language processing using IBM Watson Natural Language Understanding", + "description": "Analyze text and web pages with IBM Watson Natural Language Understanding.", "deprecated": true, "firstVersion": "4.16.0", "label": "ai,cloud", @@ -24,50 +24,50 @@ "remote": true }, "componentProperties": { - "serviceUrl": { "index": 0, "kind": "property", "displayName": "Service Url", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The service endpoint URL. If not specified, the default URL will be used." }, - "analyzeCategories": { "index": 1, "kind": "property", "displayName": "Analyze Categories", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable category classification" }, - "analyzeConcepts": { "index": 2, "kind": "property", "displayName": "Analyze Concepts", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable concept extraction" }, - "analyzeEmotion": { "index": 3, "kind": "property", "displayName": "Analyze Emotion", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable emotion analysis" }, - "analyzeEntities": { "index": 4, "kind": "property", "displayName": "Analyze Entities", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable entity extraction" }, - "analyzeKeywords": { "index": 5, "kind": "property", "displayName": "Analyze Keywords", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable keyword extraction" }, - "analyzeSentiment": { "index": 6, "kind": "property", "displayName": "Analyze Sentiment", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable sentiment analysis" }, - "configuration": { "index": 7, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "Component configuration" }, + "serviceUrl": { "index": 0, "kind": "property", "displayName": "Service Url", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The URL of the Natural Language Understanding service instance, as given in its service cr [...] + "analyzeCategories": { "index": 1, "kind": "property", "displayName": "Analyze Categories", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the categories of the content in a hie [...] + "analyzeConcepts": { "index": 2, "kind": "property", "displayName": "Analyze Concepts", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the high-level concepts of the content, wh [...] + "analyzeEmotion": { "index": 3, "kind": "property", "displayName": "Analyze Emotion", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the emotions of the whole document: a score [...] + "analyzeEntities": { "index": 4, "kind": "property", "displayName": "Analyze Entities", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the entities, such as people, cities and or [...] + "analyzeKeywords": { "index": 5, "kind": "property", "displayName": "Analyze Keywords", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the important keywords of the content. The [...] + "analyzeSentiment": { "index": 6, "kind": "property", "displayName": "Analyze Sentiment", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the sentiment of the whole document. The [...] + "configuration": { "index": 7, "kind": "property", "displayName": "Configuration", "group": "producer", "label": "", "required": false, "type": "object", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "deprecated": false, "autowired": false, "secret": false, "description": "The configuration shared by the endpoints. Each endpoint starts from a copy of it, and its endpoint options replace single values." }, "lazyStartProducer": { "index": 8, "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail [...] - "operation": { "index": 9, "kind": "property", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations", "enum": [ "analyzeText", "analyzeUrl" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "descriptio [...] + "operation": { "index": 9, "kind": "property", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations", "enum": [ "analyzeText", "analyzeUrl" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "descriptio [...] "autowiredEnabled": { "index": 10, "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching [...] "healthCheckConsumerEnabled": { "index": 11, "kind": "property", "displayName": "Health Check Consumer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all consumer based health checks from this component" }, "healthCheckProducerEnabled": { "index": 12, "kind": "property", "displayName": "Health Check Producer Enabled", "group": "health", "label": "health", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Used for enabling or disabling all producer based health checks from this component. Notice: Camel has by default disabled all producer based health-checks. You can turn on produce [...] - "apiKey": { "index": 13, "kind": "property", "displayName": "Api Key", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key for authentication" } + "apiKey": { "index": 13, "kind": "property", "displayName": "Api Key", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key of the Natural Language Understanding service insta [...] }, "headers": { - "CamelIBMWatsonLanguageOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The operation to perform", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#OPERATION" }, - "CamelIBMWatsonLanguageText": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The text to analyze", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#TEXT" }, - "CamelIBMWatsonLanguageUrl": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The URL to analyze", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#URL" }, - "CamelIBMWatsonLanguageAnalyzeSentiment": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable sentiment analysis", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_SENTIMENT" }, - "CamelIBMWatsonLanguageAnalyzeEmotion": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable emotion analysis", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_EMOTION" }, - "CamelIBMWatsonLanguageAnalyzeEntities": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable entity extraction", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_ENTITIES" }, - "CamelIBMWatsonLanguageAnalyzeKeywords": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable keyword extraction", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_KEYWORDS" }, - "CamelIBMWatsonLanguageAnalyzeConcepts": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable concept extraction", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_CONCEPTS" }, - "CamelIBMWatsonLanguageAnalyzeCategories": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Enable category classification", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_CATEGORIES" }, - "CamelIBMWatsonLanguageLanguage": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The language of the text", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#LANGUAGE" }, - "CamelIBMWatsonLanguageSentimentScore": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Double", "deprecated": false, "autowired": false, "secret": false, "description": "The sentiment score", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#SENTIMENT_SCORE" }, - "CamelIBMWatsonLanguageSentimentLabel": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The sentiment label (positive, negative, neutral)", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#SENTIMENT_LABEL" } + "CamelIBMWatsonLanguageOperation": { "index": 0, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The operation to perform, analyzeText or analyzeUrl. It replaces the operation option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#OPERATION" }, + "CamelIBMWatsonLanguageText": { "index": 1, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The text to analyze for analyzeText. If not set, the producer analyzes the message body.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#TEXT" }, + "CamelIBMWatsonLanguageUrl": { "index": 2, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The URL of the web page to analyze for analyzeUrl, which the service retrieves. If not set, the producer reads the URL from the message body.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#URL" }, + "CamelIBMWatsonLanguageAnalyzeSentiment": { "index": 3, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the sentiment of the document. It replaces the analyzeSentiment option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_SENTIMENT" }, + "CamelIBMWatsonLanguageAnalyzeEmotion": { "index": 4, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the emotions of the document. It replaces the analyzeEmotion option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_EMOTION" }, + "CamelIBMWatsonLanguageAnalyzeEntities": { "index": 5, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the entities of the content. It replaces the analyzeEntities option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_ENTITIES" }, + "CamelIBMWatsonLanguageAnalyzeKeywords": { "index": 6, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the keywords of the content. It replaces the analyzeKeywords option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_KEYWORDS" }, + "CamelIBMWatsonLanguageAnalyzeConcepts": { "index": 7, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the concepts of the content. It replaces the analyzeConcepts option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_CONCEPTS" }, + "CamelIBMWatsonLanguageAnalyzeCategories": { "index": 8, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Boolean", "deprecated": false, "autowired": false, "secret": false, "description": "Whether to request the categories of the content. It replaces the analyzeCategories option.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#ANALYZE_CATEGORIES" }, + "CamelIBMWatsonLanguageLanguage": { "index": 9, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The ISO 639-1 code of the language that the service detected and used for the analysis, for example en. The producer sets it after each analysis.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#LANGUAGE" }, + "CamelIBMWatsonLanguageSentimentScore": { "index": 10, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "Double", "deprecated": false, "autowired": false, "secret": false, "description": "The sentiment score of the whole document, from -1 (negative) to 1 (positive). The producer sets it when sentiment is requested.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#SENTIMENT_SCORE" }, + "CamelIBMWatsonLanguageSentimentLabel": { "index": 11, "kind": "header", "displayName": "", "group": "producer", "label": "", "required": false, "javaType": "String", "deprecated": false, "autowired": false, "secret": false, "description": "The sentiment label of the whole document: positive, neutral or negative. The producer sets it when sentiment is requested.", "constantName": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConstants#SENTIMENT_LABEL" } }, "bodyTypes": { "producerIn": { "carriers": [ "any" ], "description": "The text to analyze for analyzeText, or the URL of the page for analyzeUrl, read as text, unless the CamelIBMWatsonLanguageText or CamelIBMWatsonLanguageUrl header gives it. Without the header, no body or a blank one fails, and a Map or a POJO is analyzed as its toString(): marshal it first" }, "producerOut": { "carriers": [ "pojo" ], "javaType": "com.ibm.watson.natural_language_understanding.v1.model.AnalysisResults", "description": "The results of the features enabled (sentiment, entities, keywords and so on), with the sentiment score and label and the language in headers too. Converted to text, it is the JSON of the results" } }, "properties": { - "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Logical name" }, - "serviceUrl": { "index": 1, "kind": "parameter", "displayName": "Service Url", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The service endpoint URL. If not specified, the default URL will be used." }, - "analyzeCategories": { "index": 2, "kind": "parameter", "displayName": "Analyze Categories", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable category classification" }, - "analyzeConcepts": { "index": 3, "kind": "parameter", "displayName": "Analyze Concepts", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable concept extraction" }, - "analyzeEmotion": { "index": 4, "kind": "parameter", "displayName": "Analyze Emotion", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable emotion analysis" }, - "analyzeEntities": { "index": 5, "kind": "parameter", "displayName": "Analyze Entities", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable entity extraction" }, - "analyzeKeywords": { "index": 6, "kind": "parameter", "displayName": "Analyze Keywords", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable keyword extraction" }, - "analyzeSentiment": { "index": 7, "kind": "parameter", "displayName": "Analyze Sentiment", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Enable sentiment analysis" }, - "operation": { "index": 8, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations", "enum": [ "analyzeText", "analyzeUrl" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "descripti [...] + "label": { "index": 0, "kind": "path", "displayName": "Label", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "A name of your choice for the endpoint. The component does not use it." }, + "serviceUrl": { "index": 1, "kind": "parameter", "displayName": "Service Url", "group": "common", "label": "common", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The URL of the Natural Language Understanding service instance, as given in its service c [...] + "analyzeCategories": { "index": 2, "kind": "parameter", "displayName": "Analyze Categories", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the categories of the content in a hi [...] + "analyzeConcepts": { "index": 3, "kind": "parameter", "displayName": "Analyze Concepts", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the high-level concepts of the content, w [...] + "analyzeEmotion": { "index": 4, "kind": "parameter", "displayName": "Analyze Emotion", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the emotions of the whole document: a score [...] + "analyzeEntities": { "index": 5, "kind": "parameter", "displayName": "Analyze Entities", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the entities, such as people, cities and o [...] + "analyzeKeywords": { "index": 6, "kind": "parameter", "displayName": "Analyze Keywords", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the important keywords of the content. The [...] + "analyzeSentiment": { "index": 7, "kind": "parameter", "displayName": "Analyze Sentiment", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "Whether to request the sentiment of the whole document. The [...] + "operation": { "index": 8, "kind": "parameter", "displayName": "Operation", "group": "producer", "label": "producer", "required": false, "type": "enum", "javaType": "org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations", "enum": [ "analyzeText", "analyzeUrl" ], "deprecated": false, "autowired": false, "secret": false, "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "descripti [...] "lazyStartProducer": { "index": 9, "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer (advanced)", "label": "producer,advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a produc [...] - "apiKey": { "index": 10, "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key for authentication" } + "apiKey": { "index": 10, "kind": "parameter", "displayName": "Api Key", "group": "security", "label": "security", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": true, "security": "secret", "configurationClass": "org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration", "configurationField": "configuration", "description": "The IBM Cloud API key of the Natural Language Understanding service inst [...] } } diff --git a/components/camel-ibm/camel-ibm-watson-language/src/main/docs/ibm-watson-language-component.adoc b/components/camel-ibm/camel-ibm-watson-language/src/main/docs/ibm-watson-language-component.adoc index 2b716f4ce619..2a137d171f33 100644 --- a/components/camel-ibm/camel-ibm-watson-language/src/main/docs/ibm-watson-language-component.adoc +++ b/components/camel-ibm/camel-ibm-watson-language/src/main/docs/ibm-watson-language-component.adoc @@ -2,7 +2,7 @@ :doctitle: IBM Watson Language :shortname: ibm-watson-language :artifactid: camel-ibm-watson-language -:description: Perform natural language processing using IBM Watson Natural Language Understanding +:description: Analyze text and web pages with IBM Watson Natural Language Understanding. :since: 4.16 :supportlevel: Stable-deprecated :deprecated: *deprecated* @@ -349,5 +349,3 @@ Maven users will need to add the following dependency to their `pom.xml`. --------------------------------------- where `x.x.x` is the version number of Camel. - - diff --git a/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageComponent.java b/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageComponent.java index e383e0dcd52c..200f8380ba67 100644 --- a/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageComponent.java +++ b/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageComponent.java @@ -27,7 +27,8 @@ import org.apache.camel.support.HealthCheckComponent; @Deprecated(since = "4.24") public class WatsonLanguageComponent extends HealthCheckComponent { - @Metadata + @Metadata(description = "The configuration shared by the endpoints. Each endpoint starts from a copy of it, and its" + + " endpoint options replace single values.") private WatsonLanguageConfiguration configuration = new WatsonLanguageConfiguration(); public WatsonLanguageComponent() { @@ -47,9 +48,6 @@ public class WatsonLanguageComponent extends HealthCheckComponent { return configuration; } - /** - * Component configuration - */ public void setConfiguration(WatsonLanguageConfiguration configuration) { this.configuration = configuration; } diff --git a/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageConfiguration.java b/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageConfiguration.java index 6b2234f89e22..7fb386f8cbdf 100644 --- a/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageConfiguration.java +++ b/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageConfiguration.java @@ -25,41 +25,63 @@ import org.apache.camel.spi.UriParams; @Deprecated(since = "4.24") public class WatsonLanguageConfiguration implements Cloneable { - @UriParam(label = "security", security = "secret") + @UriParam(label = "security", security = "secret", + description = "The IBM Cloud API key of the Natural Language Understanding service instance. The IBM Cloud IAM" + + " authenticator of the SDK exchanges it for an access token. The endpoint fails to start if" + + " it is not set.") @Metadata(required = true) private String apiKey; - @UriParam(label = "common") + @UriParam(label = "common", + description = "The URL of the Natural Language Understanding service instance, as given in its service" + + " credentials. If not set, the SDK uses" + + " https://api.us-south.natural-language-understanding.watson.cloud.ibm.com (Dallas).") private String serviceUrl; - @UriParam(label = "producer") + @UriParam(label = "producer", + description = "The operation that the producer performs: analyzeText analyzes the given text, and analyzeUrl" + + " the web page at the given URL, which the service retrieves. The" + + " CamelIBMWatsonLanguageOperation header replaces this option. The producer fails if neither" + + " is set.") private WatsonLanguageOperations operation; - @UriParam(label = "producer", defaultValue = "true") + @UriParam(label = "producer", defaultValue = "true", + description = "Whether to request the sentiment of the whole document. The producer then sets the" + + " CamelIBMWatsonLanguageSentimentScore and CamelIBMWatsonLanguageSentimentLabel headers. The" + + " CamelIBMWatsonLanguageAnalyzeSentiment header replaces this option.") private boolean analyzeSentiment = true; - @UriParam(label = "producer") + @UriParam(label = "producer", + description = "Whether to request the emotions of the whole document: a score from 0 to 1 for anger," + + " disgust, fear, joy and sadness. The service supports it for English only. The" + + " CamelIBMWatsonLanguageAnalyzeEmotion header replaces this option.") private boolean analyzeEmotion; - @UriParam(label = "producer", defaultValue = "true") + @UriParam(label = "producer", defaultValue = "true", + description = "Whether to request the entities, such as people, cities and organizations, that the content" + + " mentions. The CamelIBMWatsonLanguageAnalyzeEntities header replaces this option.") private boolean analyzeEntities = true; - @UriParam(label = "producer", defaultValue = "true") + @UriParam(label = "producer", defaultValue = "true", + description = "Whether to request the important keywords of the content. The" + + " CamelIBMWatsonLanguageAnalyzeKeywords header replaces this option.") private boolean analyzeKeywords = true; - @UriParam(label = "producer") + @UriParam(label = "producer", + description = "Whether to request the high-level concepts of the content, which can include concepts that" + + " the text does not name. The CamelIBMWatsonLanguageAnalyzeConcepts header replaces this" + + " option.") private boolean analyzeConcepts; - @UriParam(label = "producer") + @UriParam(label = "producer", + description = "Whether to request the categories of the content in a hierarchical taxonomy, by default the" + + " top three. The CamelIBMWatsonLanguageAnalyzeCategories header replaces this option.") private boolean analyzeCategories; public String getApiKey() { return apiKey; } - /** - * The IBM Cloud API key for authentication - */ public void setApiKey(String apiKey) { this.apiKey = apiKey; } @@ -68,9 +90,6 @@ public class WatsonLanguageConfiguration implements Cloneable { return serviceUrl; } - /** - * The service endpoint URL. If not specified, the default URL will be used. - */ public void setServiceUrl(String serviceUrl) { this.serviceUrl = serviceUrl; } @@ -79,9 +98,6 @@ public class WatsonLanguageConfiguration implements Cloneable { return operation; } - /** - * The operation to perform - */ public void setOperation(WatsonLanguageOperations operation) { this.operation = operation; } @@ -90,9 +106,6 @@ public class WatsonLanguageConfiguration implements Cloneable { return analyzeSentiment; } - /** - * Enable sentiment analysis - */ public void setAnalyzeSentiment(boolean analyzeSentiment) { this.analyzeSentiment = analyzeSentiment; } @@ -101,9 +114,6 @@ public class WatsonLanguageConfiguration implements Cloneable { return analyzeEmotion; } - /** - * Enable emotion analysis - */ public void setAnalyzeEmotion(boolean analyzeEmotion) { this.analyzeEmotion = analyzeEmotion; } @@ -112,9 +122,6 @@ public class WatsonLanguageConfiguration implements Cloneable { return analyzeEntities; } - /** - * Enable entity extraction - */ public void setAnalyzeEntities(boolean analyzeEntities) { this.analyzeEntities = analyzeEntities; } @@ -123,9 +130,6 @@ public class WatsonLanguageConfiguration implements Cloneable { return analyzeKeywords; } - /** - * Enable keyword extraction - */ public void setAnalyzeKeywords(boolean analyzeKeywords) { this.analyzeKeywords = analyzeKeywords; } @@ -134,9 +138,6 @@ public class WatsonLanguageConfiguration implements Cloneable { return analyzeConcepts; } - /** - * Enable concept extraction - */ public void setAnalyzeConcepts(boolean analyzeConcepts) { this.analyzeConcepts = analyzeConcepts; } @@ -145,9 +146,6 @@ public class WatsonLanguageConfiguration implements Cloneable { return analyzeCategories; } - /** - * Enable category classification - */ public void setAnalyzeCategories(boolean analyzeCategories) { this.analyzeCategories = analyzeCategories; } diff --git a/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageConstants.java b/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageConstants.java index 2ae86bddeb62..1333dd1e3ebe 100644 --- a/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageConstants.java +++ b/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageConstants.java @@ -24,30 +24,46 @@ import org.apache.camel.spi.Metadata; @Deprecated(since = "4.24") public interface WatsonLanguageConstants { - @Metadata(description = "The operation to perform", javaType = "String") + @Metadata(description = "The operation to perform, analyzeText or analyzeUrl. It replaces the operation option.", + javaType = "String") String OPERATION = "CamelIBMWatsonLanguageOperation"; // Natural Language Understanding headers - @Metadata(description = "The text to analyze", javaType = "String") + @Metadata(description = "The text to analyze for analyzeText. If not set, the producer analyzes the message body.", + javaType = "String") String TEXT = "CamelIBMWatsonLanguageText"; - @Metadata(description = "The URL to analyze", javaType = "String") + @Metadata(description = "The URL of the web page to analyze for analyzeUrl, which the service retrieves. If not set, the" + + " producer reads the URL from the message body.", + javaType = "String") String URL = "CamelIBMWatsonLanguageUrl"; - @Metadata(description = "Enable sentiment analysis", javaType = "Boolean") + @Metadata(description = "Whether to request the sentiment of the document. It replaces the analyzeSentiment option.", + javaType = "Boolean") String ANALYZE_SENTIMENT = "CamelIBMWatsonLanguageAnalyzeSentiment"; - @Metadata(description = "Enable emotion analysis", javaType = "Boolean") + @Metadata(description = "Whether to request the emotions of the document. It replaces the analyzeEmotion option.", + javaType = "Boolean") String ANALYZE_EMOTION = "CamelIBMWatsonLanguageAnalyzeEmotion"; - @Metadata(description = "Enable entity extraction", javaType = "Boolean") + @Metadata(description = "Whether to request the entities of the content. It replaces the analyzeEntities option.", + javaType = "Boolean") String ANALYZE_ENTITIES = "CamelIBMWatsonLanguageAnalyzeEntities"; - @Metadata(description = "Enable keyword extraction", javaType = "Boolean") + @Metadata(description = "Whether to request the keywords of the content. It replaces the analyzeKeywords option.", + javaType = "Boolean") String ANALYZE_KEYWORDS = "CamelIBMWatsonLanguageAnalyzeKeywords"; - @Metadata(description = "Enable concept extraction", javaType = "Boolean") + @Metadata(description = "Whether to request the concepts of the content. It replaces the analyzeConcepts option.", + javaType = "Boolean") String ANALYZE_CONCEPTS = "CamelIBMWatsonLanguageAnalyzeConcepts"; - @Metadata(description = "Enable category classification", javaType = "Boolean") + @Metadata(description = "Whether to request the categories of the content. It replaces the analyzeCategories option.", + javaType = "Boolean") String ANALYZE_CATEGORIES = "CamelIBMWatsonLanguageAnalyzeCategories"; - @Metadata(description = "The language of the text", javaType = "String") + @Metadata(description = "The ISO 639-1 code of the language that the service detected and used for the analysis, for" + + " example en. The producer sets it after each analysis.", + javaType = "String") String LANGUAGE = "CamelIBMWatsonLanguageLanguage"; - @Metadata(description = "The sentiment score", javaType = "Double") + @Metadata(description = "The sentiment score of the whole document, from -1 (negative) to 1 (positive). The producer" + + " sets it when sentiment is requested.", + javaType = "Double") String SENTIMENT_SCORE = "CamelIBMWatsonLanguageSentimentScore"; - @Metadata(description = "The sentiment label (positive, negative, neutral)", javaType = "String") + @Metadata(description = "The sentiment label of the whole document: positive, neutral or negative. The producer sets it" + + " when sentiment is requested.", + javaType = "String") String SENTIMENT_LABEL = "CamelIBMWatsonLanguageSentimentLabel"; } diff --git a/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageEndpoint.java b/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageEndpoint.java index d87da3412ce8..bfb37e7939d9 100644 --- a/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageEndpoint.java +++ b/components/camel-ibm/camel-ibm-watson-language/src/main/java/org/apache/camel/component/ibm/watson/language/WatsonLanguageEndpoint.java @@ -33,7 +33,7 @@ import org.apache.camel.spi.UriPath; import org.apache.camel.support.DefaultEndpoint; /** - * Perform natural language processing using IBM Watson Natural Language Understanding + * Analyze text and web pages with IBM Watson Natural Language Understanding. */ @UriEndpoint(firstVersion = "4.16.0", scheme = "ibm-watson-language", title = "IBM Watson Language", syntax = "ibm-watson-language:label", producerOnly = true, category = { Category.AI, Category.CLOUD }, @@ -52,7 +52,7 @@ import org.apache.camel.support.DefaultEndpoint; @Deprecated(since = "4.24") public class WatsonLanguageEndpoint extends DefaultEndpoint implements EndpointServiceLocation { - @UriPath(description = "Logical name") + @UriPath(description = "A name of your choice for the endpoint. The component does not use it.") @Metadata(required = true) private String label; diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java index 452d584d5e4d..1ec9c074107c 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java @@ -2640,8 +2640,8 @@ public interface ComponentsBuilderFactory { } /** * IBM Watson Language (camel-ibm-watson-language) - * Perform natural language processing using IBM Watson Natural Language - * Understanding + * Analyze text and web pages with IBM Watson Natural Language + * Understanding. * * Category: ai,cloud * Since: 4.16 diff --git a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonLanguageComponentBuilderFactory.java b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonLanguageComponentBuilderFactory.java index ae9cffe28a54..b2595a40c4d5 100644 --- a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonLanguageComponentBuilderFactory.java +++ b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/IbmWatsonLanguageComponentBuilderFactory.java @@ -24,8 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder; import org.apache.camel.component.ibm.watson.language.WatsonLanguageComponent; /** - * Perform natural language processing using IBM Watson Natural Language - * Understanding + * Analyze text and web pages with IBM Watson Natural Language Understanding. * * Generated by camel build tools - do NOT edit this file! */ @@ -34,8 +33,8 @@ public interface IbmWatsonLanguageComponentBuilderFactory { /** * IBM Watson Language (camel-ibm-watson-language) - * Perform natural language processing using IBM Watson Natural Language - * Understanding + * Analyze text and web pages with IBM Watson Natural Language + * Understanding. * * Category: ai,cloud * Since: 4.16 @@ -53,8 +52,9 @@ public interface IbmWatsonLanguageComponentBuilderFactory { interface IbmWatsonLanguageComponentBuilder extends ComponentBuilder<WatsonLanguageComponent> { /** - * The service endpoint URL. If not specified, the default URL will be - * used. + * The URL of the Natural Language Understanding service instance, as + * given in its service credentials. If not set, the SDK uses + * https://api.us-south.natural-language-understanding.watson.cloud.ibm.com (Dallas). * * The option is a: <code>java.lang.String</code> type. * @@ -70,7 +70,9 @@ public interface IbmWatsonLanguageComponentBuilderFactory { /** - * Enable category classification. + * Whether to request the categories of the content in a hierarchical + * taxonomy, by default the top three. The + * CamelIBMWatsonLanguageAnalyzeCategories header replaces this option. * * The option is a: <code>boolean</code> type. * @@ -87,7 +89,9 @@ public interface IbmWatsonLanguageComponentBuilderFactory { /** - * Enable concept extraction. + * Whether to request the high-level concepts of the content, which can + * include concepts that the text does not name. The + * CamelIBMWatsonLanguageAnalyzeConcepts header replaces this option. * * The option is a: <code>boolean</code> type. * @@ -104,7 +108,10 @@ public interface IbmWatsonLanguageComponentBuilderFactory { /** - * Enable emotion analysis. + * Whether to request the emotions of the whole document: a score from 0 + * to 1 for anger, disgust, fear, joy and sadness. The service supports + * it for English only. The CamelIBMWatsonLanguageAnalyzeEmotion header + * replaces this option. * * The option is a: <code>boolean</code> type. * @@ -121,7 +128,9 @@ public interface IbmWatsonLanguageComponentBuilderFactory { /** - * Enable entity extraction. + * Whether to request the entities, such as people, cities and + * organizations, that the content mentions. The + * CamelIBMWatsonLanguageAnalyzeEntities header replaces this option. * * The option is a: <code>boolean</code> type. * @@ -138,7 +147,8 @@ public interface IbmWatsonLanguageComponentBuilderFactory { /** - * Enable keyword extraction. + * Whether to request the important keywords of the content. The + * CamelIBMWatsonLanguageAnalyzeKeywords header replaces this option. * * The option is a: <code>boolean</code> type. * @@ -155,7 +165,10 @@ public interface IbmWatsonLanguageComponentBuilderFactory { /** - * Enable sentiment analysis. + * Whether to request the sentiment of the whole document. The producer + * then sets the CamelIBMWatsonLanguageSentimentScore and + * CamelIBMWatsonLanguageSentimentLabel headers. The + * CamelIBMWatsonLanguageAnalyzeSentiment header replaces this option. * * The option is a: <code>boolean</code> type. * @@ -171,7 +184,8 @@ public interface IbmWatsonLanguageComponentBuilderFactory { } /** - * Component configuration. + * The configuration shared by the endpoints. Each endpoint starts from + * a copy of it, and its endpoint options replace single values. * * The option is a: * <code>org.apache.camel.component.ibm.watson.language.WatsonLanguageConfiguration</code> type. @@ -212,7 +226,10 @@ public interface IbmWatsonLanguageComponentBuilderFactory { } /** - * The operation to perform. + * The operation that the producer performs: analyzeText analyzes the + * given text, and analyzeUrl the web page at the given URL, which the + * service retrieves. The CamelIBMWatsonLanguageOperation header + * replaces this option. The producer fails if neither is set. * * The option is a: * <code>org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations</code> type. @@ -288,7 +305,9 @@ public interface IbmWatsonLanguageComponentBuilderFactory { } /** - * The IBM Cloud API key for authentication. + * The IBM Cloud API key of the Natural Language Understanding service + * instance. The IBM Cloud IAM authenticator of the SDK exchanges it for + * an access token. The endpoint fails to start if it is not set. * * The option is a: <code>java.lang.String</code> type. * diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java index c9cb42abd833..034ec1eefa9b 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java @@ -2067,8 +2067,8 @@ public class EndpointHeaderBuilders { } /** * IBM Watson Language (camel-ibm-watson-language) - * Perform natural language processing using IBM Watson Natural Language - * Understanding + * Analyze text and web pages with IBM Watson Natural Language + * Understanding. * * Category: ai,cloud * Since: 4.16 diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java index 19f273f2bcb8..347b859411e5 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java @@ -8797,8 +8797,8 @@ public class StaticEndpointBuilders { } /** * IBM Watson Language (camel-ibm-watson-language) - * Perform natural language processing using IBM Watson Natural Language - * Understanding + * Analyze text and web pages with IBM Watson Natural Language + * Understanding. * * Category: ai,cloud * Since: 4.16 @@ -8807,7 +8807,7 @@ public class StaticEndpointBuilders { * Syntax: <code>ibm-watson-language:label</code> * * Path parameter: label (required) - * Logical name + * A name of your choice for the endpoint. The component does not use it. * * @param path label * @return the dsl builder @@ -8818,8 +8818,8 @@ public class StaticEndpointBuilders { } /** * IBM Watson Language (camel-ibm-watson-language) - * Perform natural language processing using IBM Watson Natural Language - * Understanding + * Analyze text and web pages with IBM Watson Natural Language + * Understanding. * * Category: ai,cloud * Since: 4.16 @@ -8828,7 +8828,7 @@ public class StaticEndpointBuilders { * Syntax: <code>ibm-watson-language:label</code> * * Path parameter: label (required) - * Logical name + * A name of your choice for the endpoint. The component does not use it. * * @param componentName to use a custom component name for the endpoint * instead of the default name diff --git a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonLanguageEndpointBuilderFactory.java b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonLanguageEndpointBuilderFactory.java index 2853f1de0a48..62dfb2a69f68 100644 --- a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonLanguageEndpointBuilderFactory.java +++ b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/WatsonLanguageEndpointBuilderFactory.java @@ -27,8 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder; import org.apache.camel.builder.endpoint.AbstractEndpointBuilder; /** - * Perform natural language processing using IBM Watson Natural Language - * Understanding + * Analyze text and web pages with IBM Watson Natural Language Understanding. * * Generated by camel build tools - do NOT edit this file! */ @@ -46,8 +45,9 @@ public interface WatsonLanguageEndpointBuilderFactory { } /** - * The service endpoint URL. If not specified, the default URL will be - * used. + * The URL of the Natural Language Understanding service instance, as + * given in its service credentials. If not set, the SDK uses + * https://api.us-south.natural-language-understanding.watson.cloud.ibm.com (Dallas). * * The option is a: <code>java.lang.String</code> type. * @@ -61,7 +61,9 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable category classification. + * Whether to request the categories of the content in a hierarchical + * taxonomy, by default the top three. The + * CamelIBMWatsonLanguageAnalyzeCategories header replaces this option. * * The option is a: <code>boolean</code> type. * @@ -76,7 +78,9 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable category classification. + * Whether to request the categories of the content in a hierarchical + * taxonomy, by default the top three. The + * CamelIBMWatsonLanguageAnalyzeCategories header replaces this option. * * The option will be converted to a <code>boolean</code> type. * @@ -91,7 +95,9 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable concept extraction. + * Whether to request the high-level concepts of the content, which can + * include concepts that the text does not name. The + * CamelIBMWatsonLanguageAnalyzeConcepts header replaces this option. * * The option is a: <code>boolean</code> type. * @@ -106,7 +112,9 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable concept extraction. + * Whether to request the high-level concepts of the content, which can + * include concepts that the text does not name. The + * CamelIBMWatsonLanguageAnalyzeConcepts header replaces this option. * * The option will be converted to a <code>boolean</code> type. * @@ -121,7 +129,10 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable emotion analysis. + * Whether to request the emotions of the whole document: a score from 0 + * to 1 for anger, disgust, fear, joy and sadness. The service supports + * it for English only. The CamelIBMWatsonLanguageAnalyzeEmotion header + * replaces this option. * * The option is a: <code>boolean</code> type. * @@ -136,7 +147,10 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable emotion analysis. + * Whether to request the emotions of the whole document: a score from 0 + * to 1 for anger, disgust, fear, joy and sadness. The service supports + * it for English only. The CamelIBMWatsonLanguageAnalyzeEmotion header + * replaces this option. * * The option will be converted to a <code>boolean</code> type. * @@ -151,7 +165,9 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable entity extraction. + * Whether to request the entities, such as people, cities and + * organizations, that the content mentions. The + * CamelIBMWatsonLanguageAnalyzeEntities header replaces this option. * * The option is a: <code>boolean</code> type. * @@ -166,7 +182,9 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable entity extraction. + * Whether to request the entities, such as people, cities and + * organizations, that the content mentions. The + * CamelIBMWatsonLanguageAnalyzeEntities header replaces this option. * * The option will be converted to a <code>boolean</code> type. * @@ -181,7 +199,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable keyword extraction. + * Whether to request the important keywords of the content. The + * CamelIBMWatsonLanguageAnalyzeKeywords header replaces this option. * * The option is a: <code>boolean</code> type. * @@ -196,7 +215,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable keyword extraction. + * Whether to request the important keywords of the content. The + * CamelIBMWatsonLanguageAnalyzeKeywords header replaces this option. * * The option will be converted to a <code>boolean</code> type. * @@ -211,7 +231,10 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable sentiment analysis. + * Whether to request the sentiment of the whole document. The producer + * then sets the CamelIBMWatsonLanguageSentimentScore and + * CamelIBMWatsonLanguageSentimentLabel headers. The + * CamelIBMWatsonLanguageAnalyzeSentiment header replaces this option. * * The option is a: <code>boolean</code> type. * @@ -226,7 +249,10 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * Enable sentiment analysis. + * Whether to request the sentiment of the whole document. The producer + * then sets the CamelIBMWatsonLanguageSentimentScore and + * CamelIBMWatsonLanguageSentimentLabel headers. The + * CamelIBMWatsonLanguageAnalyzeSentiment header replaces this option. * * The option will be converted to a <code>boolean</code> type. * @@ -241,7 +267,10 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * The operation to perform. + * The operation that the producer performs: analyzeText analyzes the + * given text, and analyzeUrl the web page at the given URL, which the + * service retrieves. The CamelIBMWatsonLanguageOperation header + * replaces this option. The producer fails if neither is set. * * The option is a: * <code>org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations</code> type. @@ -256,7 +285,10 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * The operation to perform. + * The operation that the producer performs: analyzeText analyzes the + * given text, and analyzeUrl the web page at the given URL, which the + * service retrieves. The CamelIBMWatsonLanguageOperation header + * replaces this option. The producer fails if neither is set. * * The option will be converted to a * <code>org.apache.camel.component.ibm.watson.language.WatsonLanguageOperations</code> type. @@ -271,7 +303,9 @@ public interface WatsonLanguageEndpointBuilderFactory { return this; } /** - * The IBM Cloud API key for authentication. + * The IBM Cloud API key of the Natural Language Understanding service + * instance. The IBM Cloud IAM authenticator of the SDK exchanges it for + * an access token. The endpoint fails to start if it is not set. * * The option is a: <code>java.lang.String</code> type. * @@ -348,8 +382,8 @@ public interface WatsonLanguageEndpointBuilderFactory { public interface WatsonLanguageBuilders { /** * IBM Watson Language (camel-ibm-watson-language) - * Perform natural language processing using IBM Watson Natural Language - * Understanding + * Analyze text and web pages with IBM Watson Natural Language + * Understanding. * * Category: ai,cloud * Since: 4.16 @@ -363,8 +397,8 @@ public interface WatsonLanguageEndpointBuilderFactory { } /** * IBM Watson Language (camel-ibm-watson-language) - * Perform natural language processing using IBM Watson Natural Language - * Understanding + * Analyze text and web pages with IBM Watson Natural Language + * Understanding. * * Category: ai,cloud * Since: 4.16 @@ -373,7 +407,8 @@ public interface WatsonLanguageEndpointBuilderFactory { * Syntax: <code>ibm-watson-language:label</code> * * Path parameter: label (required) - * Logical name + * A name of your choice for the endpoint. The component does not use + * it. * * @param path label * @return the dsl builder @@ -384,8 +419,8 @@ public interface WatsonLanguageEndpointBuilderFactory { } /** * IBM Watson Language (camel-ibm-watson-language) - * Perform natural language processing using IBM Watson Natural Language - * Understanding + * Analyze text and web pages with IBM Watson Natural Language + * Understanding. * * Category: ai,cloud * Since: 4.16 @@ -394,7 +429,8 @@ public interface WatsonLanguageEndpointBuilderFactory { * Syntax: <code>ibm-watson-language:label</code> * * Path parameter: label (required) - * Logical name + * A name of your choice for the endpoint. The component does not use + * it. * * @param componentName to use a custom component name for the endpoint * instead of the default name @@ -418,7 +454,8 @@ public interface WatsonLanguageEndpointBuilderFactory { public static final WatsonLanguageHeaderNameBuilder INSTANCE = new WatsonLanguageHeaderNameBuilder(); /** - * The operation to perform. + * The operation to perform, analyzeText or analyzeUrl. It replaces the + * operation option. * * The option is a: {@code String} type. * @@ -430,7 +467,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageOperation"; } /** - * The text to analyze. + * The text to analyze for analyzeText. If not set, the producer + * analyzes the message body. * * The option is a: {@code String} type. * @@ -442,7 +480,9 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageText"; } /** - * The URL to analyze. + * The URL of the web page to analyze for analyzeUrl, which the service + * retrieves. If not set, the producer reads the URL from the message + * body. * * The option is a: {@code String} type. * @@ -454,7 +494,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageUrl"; } /** - * Enable sentiment analysis. + * Whether to request the sentiment of the document. It replaces the + * analyzeSentiment option. * * The option is a: {@code Boolean} type. * @@ -467,7 +508,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageAnalyzeSentiment"; } /** - * Enable emotion analysis. + * Whether to request the emotions of the document. It replaces the + * analyzeEmotion option. * * The option is a: {@code Boolean} type. * @@ -480,7 +522,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageAnalyzeEmotion"; } /** - * Enable entity extraction. + * Whether to request the entities of the content. It replaces the + * analyzeEntities option. * * The option is a: {@code Boolean} type. * @@ -493,7 +536,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageAnalyzeEntities"; } /** - * Enable keyword extraction. + * Whether to request the keywords of the content. It replaces the + * analyzeKeywords option. * * The option is a: {@code Boolean} type. * @@ -506,7 +550,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageAnalyzeKeywords"; } /** - * Enable concept extraction. + * Whether to request the concepts of the content. It replaces the + * analyzeConcepts option. * * The option is a: {@code Boolean} type. * @@ -519,7 +564,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageAnalyzeConcepts"; } /** - * Enable category classification. + * Whether to request the categories of the content. It replaces the + * analyzeCategories option. * * The option is a: {@code Boolean} type. * @@ -532,7 +578,9 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageAnalyzeCategories"; } /** - * The language of the text. + * The ISO 639-1 code of the language that the service detected and used + * for the analysis, for example en. The producer sets it after each + * analysis. * * The option is a: {@code String} type. * @@ -544,7 +592,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageLanguage"; } /** - * The sentiment score. + * The sentiment score of the whole document, from -1 (negative) to 1 + * (positive). The producer sets it when sentiment is requested. * * The option is a: {@code Double} type. * @@ -557,7 +606,8 @@ public interface WatsonLanguageEndpointBuilderFactory { return "CamelIBMWatsonLanguageSentimentScore"; } /** - * The sentiment label (positive, negative, neutral). + * The sentiment label of the whole document: positive, neutral or + * negative. The producer sets it when sentiment is requested. * * The option is a: {@code String} type. * diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md index b2a861a29af4..5553d10434e3 100644 --- a/tasks/component-descriptions.md +++ b/tasks/component-descriptions.md @@ -215,7 +215,7 @@ or removes its row. | camel-ibm-cos | ibm-cos | | | camel-ibm-secrets-manager | ibm-secrets-manager | | | camel-ibm-watson-discovery | ibm-watson-discovery | | -| camel-ibm-watson-language | ibm-watson-language | | +| camel-ibm-watson-language | ibm-watson-language | yes | | camel-ibm-watson-speech-to-text | ibm-watson-speech-to-text | yes | | camel-ibm-watson-text-to-speech | ibm-watson-text-to-speech | | | camel-ibm-watsonx-ai | ibm-watsonx-ai | |
