Skip to content

Commit 2983441

Browse files
authored
Merge pull request #91 from watson-developer-cloud/feature-67-toneAnalyzerConfig
Feature 67 tone analyzer config
2 parents 948bf3e + 319006b commit 2983441

File tree

6 files changed

+79
-56
lines changed

6 files changed

+79
-56
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
Change Log
22
==========
3+
## Version 0.5.0
4+
5+
_2016-06-24_
6+
7+
* New: Added Alchemy Language v1 abstraction
8+
* New: Added Personality Insights v2 abstraction
9+
* Fix: Added Tone Analyzer to the Configuration Editor
10+
* Fix: Added Tradeoff Analytics to the Configuration Editor
11+
* Fix: Added Conversation to the Configuration Editor
12+
* Fix: Added Personality Insights to the Configuration Editor
13+
314
## Version 0.4.0
415

516
_2016-06-09_

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Ensure that you have the following prerequisites:
3535
You can get the latest SDK release by clicking [here][latest_release].
3636

3737
### Installing the SDK source into your Unity project
38-
Move the `unity-sdk` directory into the Assets directory of the Unity project. **Rename the SDK directory from `unity-sdk` to 'Watson'.**
38+
Move the **`unity-sdk`** directory into the Assets directory of the Unity project. **Rename the SDK directory from `unity-sdk` to `Watson`.**
3939

4040
## Configuring your service credentials
4141
You will need the 'username' and 'password' credentials for each service. Service credentials are different from your Bluemix account username and password.
@@ -331,7 +331,7 @@ void Start () {
331331
```
332332

333333
### Conversation
334-
With the IBM Watson™ [Conversation][conversation] service you can create cognitive agents - virtual agents that combine machine learning, natural language understanding, and integrated dialog scripting tools to provide outstanding customer engagements.
334+
With the IBM Watson™ [Conversation][conversation] service you can create cognitive agents - virtual agents that combine machine learning, natural language understanding, and integrated dialog scripting tools to provide outstanding customer engagements. A workspace should be created using [Conversation tooling][conversation_tooling] and a variable `ConversationV1_ID` should be set in the Config Editor with the Workspace ID.
335335

336336
```cs
337337
private Conversation m_Conversation = new Conversation();
@@ -354,7 +354,7 @@ void OnMessage (DataModels.MessageResponse resp)
354354

355355

356356
### Visual Recognition
357-
Use the [Visual Recognition][visual_recognition] service to classify an image against a default or custom trained classifier. In addition, the service can detect faces and text in an image. Instead of credentials, the Visual Recognition key ("VISUAL\_RECOGNITION\_API\_KEY") must be set as a variable in the Advanced Mode of the Config Editor (**Watson -> Configuration Editor**). The ServiceID (VisualRecognitionV3) and endpoint URL (https://gateway-a.watsonplatform.net/visual-recognition/api) must also be added manually.
357+
Use the [Visual Recognition][visual_recognition] service to classify an image against a default or custom trained classifier. In addition, the service can detect faces and text in an image. Instead of credentials, the Visual Recognition key `VISUAL_RECOGNITION_API_KEY` must be set as a variable in the Advanced Mode of the Config Editor (**Watson -> Configuration Editor**). The ServiceID `VisualRecognitionV3` and endpoint URL `https://gateway-a.watsonplatform.net/visual-recognition/api` must also be added manually.
358358

359359
![visual-recognition0](http://g.recordit.co/Qke2gKfaKJ.gif)
360360

@@ -439,7 +439,7 @@ private void OnGetClassifier(GetClassifiersPerClassifierVerbose classifier)
439439
}
440440
```
441441
##### Training classifiers
442-
Train a new classifier by uploading image data. Two compressed zip files containing at least two positive example files or one positive and one negative example file. The prefix of the positive example file is used as the classname for the new classifier ("<Class Name>_positive_examples"). Negative examples zip must be named "negative_examples". After a successful call, training the classifier takes a few minutes.
442+
Train a new classifier by uploading image data. Two compressed zip files containing at least two positive example files or one positive and one negative example file. The prefix of the positive example file is used as the classname for the new classifier `<Class Name>_positive_examples`. Negative examples zip must be named `negative_examples`. After a successful call, training the classifier takes a few minutes.
443443

444444
```cs
445445
private VisualRecognition m_VisualRecognition = new VisualRecognition();
@@ -780,7 +780,7 @@ private void LogTraitTree(DataModels.TraitTreeNode traitTreeNode)
780780

781781

782782
### Alchemy Language
783-
Use the [Alchemy Language][alchemy_language] service to extract semantic meta-data from content such as information on people, places, companies, topics, facts, relationships, authors and languages. Instead of credentials, the Alchemy API Key ("ALCHEMY\_API\_KEY") must be set as a variable in the Advanced Mode of the Config Editor (**Watson -> Configuration Editor**). The ServiceID (AlchemyLanguageV1) and endpoint URL (https://gateway-a.watsonplatform.net) must also be added manually.
783+
Use the [Alchemy Language][alchemy_language] service to extract semantic meta-data from content such as information on people, places, companies, topics, facts, relationships, authors and languages. Instead of credentials, the Alchemy API Key `ALCHEMY_API_KEY` must be set as a variable in the Advanced Mode of the Config Editor (**Watson -> Configuration Editor**). The ServiceID `AlchemyLanguageV1` and endpoint URL `https://gateway-a.watsonplatform.net` must also be added manually.
784784

785785
![alchemy-language0](http://g.recordit.co/xkGArdMVbC.gif)
786786

@@ -1364,13 +1364,16 @@ private void OnGetCombinedData(CombinedCallData combinedData, string data)
13641364

13651365
## Developing a basic application in one minute
13661366
You can quickly develop a basic application that uses the Speech to Text service and the Natural Language Classifier service by using the prefabs that come with the SDK. Ensure that you prepare the test data before you complete the the following steps:
1367+
13671368
1. Create a new scene and drag the following prefabs from **Assets -> Watson -> Prefabs**, and drop them in the Hierarchy tab:
1369+
13681370
* MicWidget
13691371
* SpeechToTextWidget
13701372
* Natural Language Classifier Widget
13711373
* ClassDisplayWidget
1374+
13721375
2. Select the **Natural Language Classifier Widget**.
1373-
5. In the **Classifier Name** field in the Inspector tab, specify 'TestNaturalLanguageClassifier'.
1376+
5. In the **Classifier Name** field in the Inspector tab, specify `TestNaturalLanguageClassifier`.
13741377
6. In the Natural Language Classifier Editor, expand the **Test Natural Language Classifier** , expand the classes, and determine which questions about the weather to ask to test the classifier.
13751378
7. Run the application.
13761379
8. Say your questions into the microphone to test the MicWidget, the SpeechToTextWidget, and the NaturalLanguageClassifierWidget.
@@ -1412,3 +1415,4 @@ See [CONTRIBUTING.md](.github/CONTRIBUTING.md).
14121415
[conversation]:http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/conversation/
14131416
[visual_recognition]: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/visual-recognition/api/v3/
14141417
[personality_insights]: http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/personality-insights/api/v2/
1418+
[conversation_tooling]: https://www.ibmwatsonconversation.com

Scripts/Editor/ConfigEditor.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,15 @@ private class ServiceSetup
5757
new ServiceSetup() { ServiceName = "Language Translator", ServiceAPI = "language-translation/api",
5858
URL ="https://console.ng.bluemix.net/catalog/services/language-translation/", ServiceID="LanguageTranslatorV1" },
5959
new ServiceSetup() { ServiceName = "Natural Language Classifier", ServiceAPI = "natural-language-classifier/api",
60-
URL ="https://console.ng.bluemix.net/catalog/natural-language-classifier/", ServiceID="NaturalLanguageClassifierV1" }
60+
URL ="https://console.ng.bluemix.net/catalog/natural-language-classifier/", ServiceID="NaturalLanguageClassifierV1" },
61+
new ServiceSetup() { ServiceName = "Tone Analyzer", ServiceAPI = "tone-analyzer/api",
62+
URL ="https://console.ng.bluemix.net/catalog/services/tone-analyzer/", ServiceID="ToneAnalyzerV3" },
63+
new ServiceSetup() { ServiceName = "Tradeoff Analytics", ServiceAPI = "tradeoff-analytics/api",
64+
URL ="https://console.ng.bluemix.net/catalog/services/tradeoff-analytics/", ServiceID="TradeoffAnalyticsV1" },
65+
new ServiceSetup() { ServiceName = "Personality Insights", ServiceAPI = "personality-insights/api",
66+
URL ="https://console.ng.bluemix.net/catalog/services/personality-insights/", ServiceID="PersonalityInsightsV2" },
67+
new ServiceSetup() { ServiceName = "Conversation", ServiceAPI = "conversation-experimental/api",
68+
URL ="https://console.ng.bluemix.net/catalog/services/conversation/", ServiceID="ConversationV1" }
6169
};
6270

6371
private const string TITLE = "Watson Unity SDK";

0 commit comments

Comments
 (0)