Skip to content

Commit

Permalink
Merge pull request #467 from chughts/master
Browse files Browse the repository at this point in the history
080 Release
  • Loading branch information
chughts committed Jan 5, 2020
2 parents 2869917 + 4791f19 commit 9118eea
Show file tree
Hide file tree
Showing 23 changed files with 1,436 additions and 529 deletions.
87 changes: 87 additions & 0 deletions ChangeHistory.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,90 @@
## 0.7.x

### New in version 0.7.8
- NLU Node - Add Syntax to list of selectable features

### New in version 0.7.7
- STT Node - Set correct content-type when File-Type reports a mime type of audio/opus for ogg;codec=opus files.

### New in version 0.7.6
- Bump SDK Dependency to 3.18.2
- STT Node To use iam-utils in place of removed iam-token-manager
- STT Node removed codec setting as service can now automatically detect the codec of the input audio and supports more than codec=opus for ogg formats.
- TSS Node fix to add visibility check on tts.voices and not stt.models
- Assistant V1 Workspace Manager Node updated to reflect that in update mode, updated fields
need a new_ prefix in their keys as part of the input json.
- NLC Node - migrate off deprecated methods
- NLC Node - Allow create of a classier to be based on a csv template node.

### New in version 0.7.5
- Bump SDK Dependency to 3.15.0
- Added Portuguese (Brazilian) and Chinese (Simplified and Traditional) as output languages
for Visual Recognition node.
- Added list voices and delete customisation methods to TTS Corpus Builder node.
- STT Node Changes
- Allowing SDK to manage IAM Tokens.
- Streaming mode for STT using IAM key now working.
- Fix to stream mode for max alternatives and smart formatting options
- Keywords, Word Confidence and Customization Weight can now be specified
- Allow Start and End data packets to be specified as JSON objects, as well as
a stringified JSON objects.
- In line with SDK change use createLanguageModel() to create custom model
- Disable SSL Verification option for Assistant Node.
- Natural Language Understanding Node Changes
- Bump Natural Language Understanding to 2018-11-16
- Add Limit Categories and limit_text_characters options
- Allow JSON input into Personality Insights node.
- Japanese word count was causing a Node-RED crash when run in the cloud.
- Hungarian supported by Language Translator.
- New Document Language Translator node.
- New Assistant V2 Node.
- Discovery Node changes
- Bump Discovery to 2018-12-03
- Implement Query Notices method
- Bump dependency on file-type to 10.7.0
- Bump dependency on temp to 0.9.0


### New in version 0.7.4
- Bump SDK Dependency to 3.11.0
- Bump Assistant version to 2018-09-20
- Bump Discovery version to 2018-08-01
- Bump Natural Language Understanding to 2018-09-21
- Bump Personality Insights to 2017-10-13
- Discovery New Environment Size is now a string
- Add Language Text to DropDrown for new supported languages in Translation Node.
- Natural Language Classifier updated for use of IAM key for authentication.
- Fix the Natural Language Understanding for bound IAM key service.
- German is a supported STT Language.
- Visual Recognition Key fix when migrating from unbound to bound service.

### New in version 0.7.3
- Modify Discovery Query Builder Node to use `listCollectionFields` to determine query list.

### New in version 0.7.2
- Allow version date for Assistant to be specified in `msg.params.version`
to allow optional usage of beta version.

### New in version 0.7.1
- Fix to how IAM Key for bound Visual Recognition is retrieved

### New in version 0.7.0
- In this release STT in Stream mode with IAM Keys does not work.
- Assistant, Discovery, Language Identify, Language Translator,
Natural Language Understanding, Personality Insights,
Speech to Text, Text to Speech, Tone Analyzer nodes updated
to allow for use of IAM key for authentication.
- Migrated STT node off deprecated methods.
- Fix to Tone Analyzer Node to preserve credentials on config reopen.
- Fix to Tone Analyzer to allow json objects and arrays as payload.
- Fix to STT where auto-connect was not being preserved when reopening configuration.
- Bump to 2018-03-05 version date for Discovery service.
- Move to V3 of Language Translator
- Migrated Discovery Nodes off deprecated methods.
- Remove Deprecated Retrieve and Rank Nodes



## 0.6.x

### New in version 0.6.14
Expand Down
102 changes: 20 additions & 82 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,89 +7,27 @@ Node-RED Watson Nodes for IBM Cloud

<a href="https://cla-assistant.io/watson-developer-cloud/node-red-node-watson"><img src="https://cla-assistant.io/readme/badge/watson-developer-cloud/node-red-node-watson" alt="CLA assistant" /></a>

### New in version 0.7.8
- NLU Node - Add Syntax to list of selectable features

### New in version 0.7.7
- STT Node - Set correct content-type when File-Type reports a mime type of audio/opus for ogg;codec=opus files.

### New in version 0.7.6
- Bump SDK Dependency to 3.18.2
- STT Node To use iam-utils in place of removed iam-token-manager
- STT Node removed codec setting as service can now automatically detect the codec of the input audio and supports more than codec=opus for ogg formats.
- TSS Node fix to add visibility check on tts.voices and not stt.models
- Assistant V1 Workspace Manager Node updated to reflect that in update mode, updated fields
need a new_ prefix in their keys as part of the input json.
- NLC Node - migrate off deprecated methods
- NLC Node - Allow create of a classier to be based on a csv template node.

### New in version 0.7.5
- Bump SDK Dependency to 3.15.0
- Added Portuguese (Brazilian) and Chinese (Simplified and Traditional) as output languages
for Visual Recognition node.
- Added list voices and delete customisation methods to TTS Corpus Builder node.
- STT Node Changes
- Allowing SDK to manage IAM Tokens.
- Streaming mode for STT using IAM key now working.
- Fix to stream mode for max alternatives and smart formatting options
- Keywords, Word Confidence and Customization Weight can now be specified
- Allow Start and End data packets to be specified as JSON objects, as well as
a stringified JSON objects.
- In line with SDK change use createLanguageModel() to create custom model
- Disable SSL Verification option for Assistant Node.
- Natural Language Understanding Node Changes
- Bump Natural Language Understanding to 2018-11-16
- Add Limit Categories and limit_text_characters options
- Allow JSON input into Personality Insights node.
- Japanese word count was causing a Node-RED crash when run in the cloud.
- Hungarian supported by Language Translator.
- New Document Language Translator node.
- New Assistant V2 Node.
- Discovery Node changes
- Bump Discovery to 2018-12-03
- Implement Query Notices method
- Bump dependency on file-type to 10.7.0
- Bump dependency on temp to 0.9.0


### New in version 0.7.4
- Bump SDK Dependency to 3.11.0
- Bump Assistant version to 2018-09-20
- Bump Discovery version to 2018-08-01
- Bump Natural Language Understanding to 2018-09-21
- Bump Personality Insights to 2017-10-13
- Discovery New Environment Size is now a string
- Add Language Text to DropDrown for new supported languages in Translation Node.
- Natural Language Classifier updated for use of IAM key for authentication.
- Fix the Natural Language Understanding for bound IAM key service.
- German is a supported STT Language.
- Visual Recognition Key fix when migrating from unbound to bound service.

### New in version 0.7.3
- Modify Discovery Query Builder Node to use `listCollectionFields` to determine query list.

### New in version 0.7.2
- Allow version date for Assistant to be specified in `msg.params.version`
to allow optional usage of beta version.

### New in version 0.7.1
- Fix to how IAM Key for bound Visual Recognition is retrieved

### New in version 0.7.0
- In this release STT in Stream mode with IAM Keys does not work.
- Assistant, Discovery, Language Identify, Language Translator,
Natural Language Understanding, Personality Insights,
Speech to Text, Text to Speech, Tone Analyzer nodes updated
to allow for use of IAM key for authentication.
- Migrated STT node off deprecated methods.
- Fix to Tone Analyzer Node to preserve credentials on config reopen.
- Fix to Tone Analyzer to allow json objects and arrays as payload.
- Fix to STT where auto-connect was not being preserved when reopening configuration.
- Bump to 2018-03-05 version date for Discovery service.
- Move to V3 of Language Translator
- Migrated Discovery Nodes off deprecated methods.
- Remove Deprecated Retrieve and Rank Nodes

### New in version 0.8.0
- In the 0.8.x releases the nodes are migrated to a node-red 1.0.x input
event callback function signature.
and migrated off watson-developer-cloud to ibm-watson as a npm dependancy.
Migrated nodes will not be compatible with pre 1.0.0 versions of node-red.
During the migration there will be a dependancy on both modules.
- Bump dependancy on node to >=10.0.0
- Bump dependancy on cfenv, request, file-type
- Bump dependancy on ibm-cloud-sdk-core to 0.3.7 (need to stay on 0.x, for STT Streaming to work)
- Node-RED & IBM-Watson & Use of promises on API invokation & IAM URL construct migration & Removal of default endpoint of
- Tone Analyzer node.
- Personality Insights node.
- Visual Recognition V3 node
- Text to Speech node
- Text to Speech Corpus Builder node
- New Visual Recognition V4 node.
- Drop faces detect option from Visual Recognition V3 node.
- Fix to URL parsing for bound services.
- STT token manager no longer in ibm-cloud-sdk-core
- Update language lists for STT, TTS, Language Translator and Document Translator Nodes

### Watson Nodes for Node-RED
A collection of nodes to interact with the IBM Watson services in [IBM Cloud](http://bluemix.net).
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "node-red-node-watson",
"version": "0.7.8",
"version": "0.8.0",
"description": "A collection of Node-RED nodes for IBM Watson services",
"dependencies": {
"async": "^1.5.2",
"cfenv": "~1.0.0",
"file-type": "^10.9.0",
"request": "~2.86.0",
"cfenv": "~1.2.2",
"file-type": "^12.4.2",
"request": "~2.88.0",
"temp": "^0.9.0",
"qs": "6.x",
"image-type": "^2.0.2",
"watson-developer-cloud": "^3.18.3",
"ibm-cloud-sdk-core": "^0.0.1",
"ibm-cloud-sdk-core": "^0.3.7",
"ibm-watson": "^5.2.1",
"word-count": "^0.2.2",
"is-docx": "^0.0.3",
"stream-to-array": "^2.3.0",
Expand Down Expand Up @@ -53,10 +54,11 @@
"watson-text-to-speech-v1": "services/text_to_speech/v1.js",
"watson-text-to-speech-corpus-builder-v1": "services/text_to_speech/v1-corpus-builder.js",
"watson-tone-analyzer-v3": "services/tone_analyzer/v3.js",
"watson-visual-recognition-v3": "services/visual_recognition/v3.js"
"watson-visual-recognition-v3": "services/visual_recognition/v3.js",
"watson-visual-recognition-collection-utils-v4": "services/visual_recognition/v4-collection-utils.js"
}
},
"engines": {
"node": ">=6.12.0"
"node": ">=10.0.0"
}
}
23 changes: 16 additions & 7 deletions services/language_translator/v3-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
</p>

<br/><br/>

<p>For more information about the Language Translator service, read the
<a href="https://console.bluemix.net/docs/services/language-translator/index.html">
documentation</a>.
Expand All @@ -217,35 +217,44 @@

doctor.LANGUAGES = { 'ar' : 'Arabic',
'arz': 'Spoken Arabic',
'bg' : 'Bulgarian',
'ca' : 'Catalan',
'cs' : 'Czech',
'da' : 'Danish',
'en' : 'English' ,
'el' : 'Greek',
'en' : 'English',
'es' : 'Spanish',
'et' : 'Estonian',
'fr' : 'French',
'fi' : 'Finnish',
'ga' : 'Galican',
'he' : 'Hebrew',
'hi' : 'Hindi',
'hr' : 'Croatian',
'hu' : 'Hungarian',
'id' : 'Indonesian',
'it' : 'Italian',
'de' : 'German',
'ja' : 'Japanese',
'lt' : 'Lithuanian',
'ms' : 'Malay',
'pt' : 'Portuguese',
'ko' : 'Korean',
'nb' : 'Norwegian Bokmål',
'nl' : 'Dutch',
'pl' : 'Polish',
'ro' : 'Romanian',
'ru' : 'Russian',
'sk' : 'Slovak',
'sl' : 'Slovenian',
'sv' : 'Swedish',
'th' : 'Thai',
'tr' : 'Turkish',
'zh' : 'Chinese',
'zh-TW' : 'Taiwanese',
'zht' : 'Traditional Chinese'
};





doctor.showSelectedFields = function(fields) {
for (i = 0; i < fields.length; i++) {
$(fields[i]).parent().show();
Expand Down Expand Up @@ -488,7 +497,7 @@
+ '"' + lang + '"'
+ selectedText
+ '>'
+ (tor.LANGUAGES[lang] ? tor.LANGUAGES[lang] : lang)
+ (doctor.LANGUAGES[lang] ? doctor.LANGUAGES[lang] : lang)
+ '</option>');
});
}
Expand Down
15 changes: 14 additions & 1 deletion services/language_translator/v3.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,25 +228,38 @@

tor.LANGUAGES = { 'ar' : 'Arabic',
'arz': 'Spoken Arabic',
'bg' : 'Bulgarian',
'ca' : 'Catalan',
'cs' : 'Czech',
'da' : 'Danish',
'en' : 'English' ,
'el' : 'Greek',
'en' : 'English',
'es' : 'Spanish',
'et' : 'Estonian',
'fr' : 'French',
'fi' : 'Finnish',
'ga' : 'Galican',
'he' : 'Hebrew',
'hi' : 'Hindi',
'hr' : 'Croatian',
'hu' : 'Hungarian',
'id' : 'Indonesian',
'it' : 'Italian',
'de' : 'German',
'ja' : 'Japanese',
'lt' : 'Lithuanian',
'ms' : 'Malay',
'pt' : 'Portuguese',
'ko' : 'Korean',
'nb' : 'Norwegian Bokmål',
'nl' : 'Dutch',
'pl' : 'Polish',
'ro' : 'Romanian',
'ru' : 'Russian',
'sk' : 'Slovak',
'sl' : 'Slovenian',
'sv' : 'Swedish',
'th' : 'Thai',
'tr' : 'Turkish',
'zh' : 'Chinese',
'zh-TW' : 'Taiwanese',
Expand Down
19 changes: 2 additions & 17 deletions services/personality_insights/v3.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,7 @@
</div>

<div class="form-row credentials">
<label>&nbsp;</label>
<input type="checkbox" id="node-input-default-endpoint" style="display: inline-block; width: auto; vertical-align: top;">
<label for="node-input-cwm-default-endpoint" style="width: 70%;"> Use Default Service Endpoint</label>
</div>
<div class="form-row">
<label for="node-input-cwm-service-endpoint"><i class="fa fa-tag"></i> Service Endpoint</label>
<label for="node-input-service-endpoint"><i class="fa fa-tag"></i> Service Endpoint</label>
<input type="text" id="node-input-service-endpoint" placeholder="https://gateway.watsonplatform.net/personality-insights/api">
</div>

Expand Down Expand Up @@ -129,8 +124,7 @@
outputlang: {value: "en"},
rawscores: {value: false},
consumption: {value: false},
'default-endpoint' :{value: true},
'service-endpoint' :{value: 'https://gateway.watsonplatform.net/personality-insights/api'}
'service-endpoint' :{value: ""}
},
credentials: {
username: {type:"text"},
Expand All @@ -149,15 +143,6 @@
return this.name ? "node_label_italic" : "";
},
oneditprepare: function() {
$('#node-input-default-endpoint').change(function () {
var checked = $('#node-input-default-endpoint').prop('checked')
if (checked) {
$('#node-input-service-endpoint').parent().hide();
} else {
$('#node-input-service-endpoint').parent().show();
}
});

$.getJSON('watson-personality-insights-v3/vcap/')
.done(function (service) {
$('.credentials').toggle(!service);
Expand Down
Loading

0 comments on commit 9118eea

Please sign in to comment.