Skip to content

Merge v0.5.0 into master for release #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 79 commits into from
Jun 24, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
186c7a0
refactored AlchemyAPI to AlchemyLanguage
mediumTaj Jun 13, 2016
3ca7c27
* Minor change to use variables on derived classes
ereneld Jun 13, 2016
7cfd977
Merge pull request #80 from watson-developer-cloud/feature-fix-watson…
mediumTaj Jun 14, 2016
f7b5bd7
* Minor change on Watson Camera - for dragging two finger as public m…
ereneld Jun 14, 2016
337cd30
Merge pull request #81 from watson-developer-cloud/feature-fix-watson…
mediumTaj Jun 14, 2016
6533cf6
full data model, refactoring in Alchemy Language service
mediumTaj Jun 14, 2016
2aa66f0
GetAuthors, some refactoring
mediumTaj Jun 15, 2016
1d3810f
update credentials with alchemy language
mediumTaj Jun 15, 2016
7934f4f
htmlGetAuthor POST working, new test html page, removed htmlGetAuthor…
mediumTaj Jun 15, 2016
8bcf6a0
GetRankedConcepts abstraction, Refactor Keywoard to Keyword
mediumTaj Jun 15, 2016
64b5830
Extract dates abstraction
mediumTaj Jun 16, 2016
3518c40
removed usage and transactions from emotiondata, refactored GetEmotio…
mediumTaj Jun 16, 2016
0cfc970
remove old GetEmotion methods
mediumTaj Jun 16, 2016
bb4fe8a
switch between source types in GetEmotions
mediumTaj Jun 16, 2016
3dd01b1
Entity extraction abstraction
mediumTaj Jun 16, 2016
221fcd0
DetectFeeds
mediumTaj Jun 16, 2016
8d40d47
Keyword extraction
mediumTaj Jun 16, 2016
f279dd4
GetLanguages
mediumTaj Jun 17, 2016
51acbd2
get microformats and get pubdate
mediumTaj Jun 17, 2016
ba4e848
Get Relations
mediumTaj Jun 17, 2016
d8ccc08
sentiment analysis and targeted sentiment analysis
mediumTaj Jun 17, 2016
e94a6d6
Ranked taxonomy
mediumTaj Jun 17, 2016
ef5b79d
GetText and GetRawText
mediumTaj Jun 19, 2016
bd1cc14
GetTitle
mediumTaj Jun 19, 2016
795847d
combined call
mediumTaj Jun 19, 2016
a2b0529
added support for custom string data for each alchemyLanguage call
mediumTaj Jun 19, 2016
5971186
edit GetAuthors
mediumTaj Jun 19, 2016
ae32de2
rewrote getRankedConcepts into one method for three endpoints
mediumTaj Jun 19, 2016
3b720bb
streamline getDates and refoactor showSourceText to includeSourceText…
mediumTaj Jun 20, 2016
5ed99b1
get pub date html and detect feeds
mediumTaj Jun 20, 2016
7de8476
integration tests for Alchemy Language
mediumTaj Jun 20, 2016
5cc49f7
showing handler name in log
mediumTaj Jun 20, 2016
ca9d361
fixes #24 - Removed support for Microformats via HTML and Feed detect…
mediumTaj Jun 20, 2016
9767c7e
update Readme with alchemy language
mediumTaj Jun 20, 2016
679bddc
* Reset camera function changed
ereneld Jun 20, 2016
7936a69
alchemy language documentation
mediumTaj Jun 20, 2016
a64d41a
Merge branch 'develop' into feature-24-alchemyLanguageAbstraction
mediumTaj Jun 21, 2016
97cd8a5
Personality Insights data model
mediumTaj Jun 21, 2016
1a12b39
update credentials, working personality insights
mediumTaj Jun 21, 2016
2e5b13b
personality insights example
mediumTaj Jun 21, 2016
fc3bc8e
integration tests and documentation
mediumTaj Jun 21, 2016
36f8e6d
Fixes #62 - Personality insights fully abstracted - readme updated
mediumTaj Jun 21, 2016
0b3ac43
data model documentation and update config
mediumTaj Jun 21, 2016
00b54fb
Merge branch 'feature-24-alchemyLanguageAbstraction' of https://githu…
mediumTaj Jun 21, 2016
41002ce
* Some changes on camera Target and camera itself.
ereneld Jun 21, 2016
94a9d77
service status
mediumTaj Jun 21, 2016
71a9366
Merge pull request #82 from watson-developer-cloud/feature-24-alchemy…
mediumTaj Jun 22, 2016
cf2c35d
merge in develop, update config
mediumTaj Jun 22, 2016
06acf37
Merge pull request #86 from watson-developer-cloud/feature-62-persona…
mediumTaj Jun 22, 2016
c62e41f
commented out GetWorkspaces in Conversation
mediumTaj Jun 22, 2016
7797a88
Merge branch 'develop' into feature-87-conversationServiceStatus
mediumTaj Jun 22, 2016
a9c3e57
Fixes #88 fixes #87 revisions to Conversation service status, update …
mediumTaj Jun 22, 2016
d0f0114
encrypt credentials
mediumTaj Jun 22, 2016
be478fc
fixes #67 add ToneAnalyzer to configuration editor
mediumTaj Jun 22, 2016
c5ccd7e
fixes #68 added TradeoffAnalytics to ConfigEditor
mediumTaj Jun 22, 2016
ff26935
fixes #69 added conversation to configuration editor
mediumTaj Jun 22, 2016
69e4d44
fixes #90 added personalityInsights to configuration manager, removed…
mediumTaj Jun 22, 2016
edd3fc9
merged in feature-68-tradeoffAnalyticsConfig
mediumTaj Jun 22, 2016
f473220
merged in feature-90-personalityInsightsConfig
mediumTaj Jun 22, 2016
3db81fd
merged in feature-69-conversationConfig
mediumTaj Jun 22, 2016
8b17cff
cleanup after merge
mediumTaj Jun 22, 2016
63f3dad
updated changelog
mediumTaj Jun 22, 2016
1e50cea
Updated readme
mediumTaj Jun 22, 2016
f00c5dc
update version to 0.5.0
mediumTaj Jun 22, 2016
4f05411
moved /calls from alchemLanguage class to config
mediumTaj Jun 22, 2016
948bf3e
Merge pull request #89 from watson-developer-cloud/feature-87-convers…
mediumTaj Jun 22, 2016
319006b
Merge branch 'develop' into feature-67-toneAnalyzerConfig
mediumTaj Jun 22, 2016
2983441
Merge pull request #91 from watson-developer-cloud/feature-67-toneAna…
mediumTaj Jun 23, 2016
382d67d
Merge branch 'develop' into feature-fix-watsoncamera6
mediumTaj Jun 23, 2016
5d2a7b1
update config
mediumTaj Jun 23, 2016
cc11136
Merge pull request #84 from watson-developer-cloud/feature-fix-watson…
mediumTaj Jun 23, 2016
bee69af
added alchemy language and visual recognition to config editor
mediumTaj Jun 23, 2016
605b1e7
showing either u/p or apikey
mediumTaj Jun 23, 2016
772b379
VisualRecognition example and service status revisions for apikey
mediumTaj Jun 23, 2016
db040b7
GetAPIKey implementation instead of variable
mediumTaj Jun 23, 2016
f5a91a0
check for empty url in configEditor advanced mode
mediumTaj Jun 23, 2016
e11e7af
Fixes #85, Fixes #70 added Alchemy Language and Visual Recognition to…
mediumTaj Jun 23, 2016
344e74e
updated credentials
mediumTaj Jun 23, 2016
0974ca1
Merge pull request #92 from watson-developer-cloud/feature-85-alchemy…
mediumTaj Jun 23, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
Change Log
==========
## Version 0.5.0

_2016-06-24_

* New: Added `Alchemy Language` abstraction
* New: Added `Personality Insights` abstraction
* Fix: Added `Tone Analyzer` to the Configuration Editor
* Fix: Added `Tradeoff Analytics` to the Configuration Editor
* Fix: Added `Conversation` to the Configuration Editor
* Fix: Added `Personality Insights` to the Configuration Editor
* Fix: Added `Alchemy Language` to the Configuration Editor
* Fix: Added `Visual Recognition` to the Configuration Editor

## Version 0.4.0

_2016-06-09_

* New: Added Tone Analyzer v3 abstraction
* New: Added Tradeoff Analytics abstraction
* New: Added Conversation abstraction
* New: Added Visual Recognition v3 abstraction
* New: Added `Tone Analyzer v3` abstraction
* New: Added `Tradeoff Analytics` abstraction
* New: Added `Conversation` abstraction
* New: Added `Visual Recognition v3` abstraction
* Fix: Creating test project dynamically for Travis CL integration
* Fix: Refactored Language Translation to Language Translator
* Fix: Widget examples sprite references were disconnected
Expand Down
Binary file modified Config.json.enc
Binary file not shown.
603 changes: 603 additions & 0 deletions Examples/ServiceExamples/Scripts/ExampleAlchemyLanguage.cs

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 13 additions & 5 deletions Examples/ServiceExamples/Scripts/ExampleConversation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
public class ExampleConversation : MonoBehaviour
{
private Conversation m_Conversation = new Conversation();
private string m_WorkspaceID = "car_demo_1";
private string m_WorkspaceID = "25dfa8a0-0263-471b-8980-317e68c30488";
private string m_Input = "Can you unlock the door?";

void Start () {
Expand All @@ -32,9 +32,17 @@ void Start () {

void OnMessage (DataModels.MessageResponse resp)
{
foreach(DataModels.MessageIntent mi in resp.intents)
Debug.Log("intent: " + mi.intent + ", confidence: " + mi.confidence);

Debug.Log("response: " + resp.output.text);
if(resp != null)
{
foreach(DataModels.MessageIntent mi in resp.intents)
Debug.Log("intent: " + mi.intent + ", confidence: " + mi.confidence);

if(resp.output != null && !string.IsNullOrEmpty(resp.output.text))
Debug.Log("response: " + resp.output.text);
}
else
{
Debug.Log("Failed to invoke Message();");
}
}
}
83 changes: 83 additions & 0 deletions Examples/ServiceExamples/Scripts/ExamplePersonalityInsights.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/**
* Copyright 2015 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

using UnityEngine;
using System.Collections;
using IBM.Watson.DeveloperCloud.Services.PersonalityInsights.v2;
using IBM.Watson.DeveloperCloud.Logging;

public class ExamplePersonalityInsights : MonoBehaviour {
PersonalityInsights m_personalityInsights = new PersonalityInsights();
private string testString = "Facing certain defeat at the hands of a room-size I.B.M. computer on Wednesday evening, Ken Jennings, famous for winning 74 games in a row on the TV quiz show, acknowledged the obvious. \"I, for one, welcome our new computer overlords,\" he wrote on his video screen, borrowing a line from a \"Simpsons\" episode.\n\nFrom now on, if the answer is \"the computer champion on \"Jeopardy!,\" the question will be, \"What is Watson?\"\n\nFor I.B.M., the showdown was not merely a well-publicized stunt and a $1 million prize, but proof that the company has taken a big step toward a world in which intelligent machines will understand and respond to humans, and perhaps inevitably, replace some of them.\n\nWatson, specifically, is a \"question answering machine\" of a type that artificial intelligence researchers have struggled with for decades — a computer akin to the one on \"Star Trek\" that can understand questions posed in natural language and answer them.\n\nWatson showed itself to be imperfect, but researchers at I.B.M. and other companies are already developing uses for Watson's technologies that could have a significant impact on the way doctors practice and consumers buy products.\n\n\"Cast your mind back 20 years and who would have thought this was possible?\" said Edward Feigenbaum, a Stanford University computer scientist and a pioneer in the field.\n\nIn its \"Jeopardy!\" project, I.B.M. researchers were tackling a game that requires not only encyclopedic recall, but also the ability to untangle convoluted and often opaque statements, a modicum of luck, and quick, strategic button pressing.\n\nThe contest, which was taped in January here at the company's T. J. Watson Research Laboratory before an audience of I.B.M. executives and company clients, played out in three televised episodes concluding Wednesday. At the end of the first day, Watson was in a tie with Brad Rutter, another ace human player, at $5,000 each, with Mr. Jennings trailing with $2,000.\n\nBut on the second day, Watson went on a tear. By night's end, Watson had a commanding lead with a total of $35,734, compared with Mr. Rutter's $10,400 and Mr. Jennings's $4,800.\n\nVictory was not cemented until late in the third match, when Watson was in Nonfiction. \"Same category for $1,200,\" it said in a manufactured tenor, and lucked into a Daily Double. Mr. Jennings grimaced.\n\nEven later in the match, however, had Mr. Jennings won another key Daily Double it might have come down to Final Jeopardy, I.B.M. researchers acknowledged.\n\nThe final tally was $77,147 to Mr. Jennings's $24,000 and Mr. Rutter's $21,600.\n\nMore than anything, the contest was a vindication for the academic field of artificial intelligence, which began with great promise in the 1960s with the vision of creating a thinking machine and which became the laughingstock of Silicon Valley in the 1980s, when a series of heavily financed start-up companies went bankrupt.\n\nDespite its intellectual prowess, Watson was by no means omniscient. On Tuesday evening during Final Jeopardy, the category was U.S. Cities and the clue was: \"Its largest airport is named for a World War II hero; its second largest for a World War II battle.\"\n\nWatson drew guffaws from many in the television audience when it responded \"What is Toronto?????\"\n\nThe string of question marks indicated that the system had very low confidence in its response, I.B.M. researchers said, but because it was Final Jeopardy, it was forced to give a response. The machine did not suffer much damage. It had wagered just $947 on its result. (The correct answer is, \"What is Chicago?\")\n\n\"We failed to deeply understand what was going on there,\" said David Ferrucci, an I.B.M. researcher who led the development of Watson. \"The reality is that there's lots of data where the title is U.S. cities and the answers are countries, European cities, people, mayors. Even though it says U.S. cities, we had very little confidence that that's the distinguishing feature.\"\n\nThe researchers also acknowledged that the machine had benefited from the \"buzzer factor.\"\n\nBoth Mr. Jennings and Mr. Rutter are accomplished at anticipating the light that signals it is possible to \"buzz in,\" and can sometimes get in with virtually zero lag time. The danger is to buzz too early, in which case the contestant is penalized and \"locked out\" for roughly a quarter of a second.\n\nWatson, on the other hand, does not anticipate the light, but has a weighted scheme that allows it, when it is highly confident, to hit the buzzer in as little as 10 milliseconds, making it very hard for humans to beat. When it was less confident, it took longer to buzz in. In the second round, Watson beat the others to the buzzer in 24 out of 30 Double Jeopardy questions.\n\n\"It sort of wants to get beaten when it doesn't have high confidence,\" Dr. Ferrucci said. \"It doesn't want to look stupid.\"\n\nBoth human players said that Watson's button pushing skill was not necessarily an unfair advantage. \"I beat Watson a couple of times,\" Mr. Rutter said.\n\nWhen Watson did buzz in, it made the most of it. Showing the ability to parse language, it responded to, \"A recent best seller by Muriel Barbery is called 'This of the Hedgehog,' \" with \"What is Elegance?\"\n\nIt showed its facility with medical diagnosis. With the answer: \"You just need a nap. You don't have this sleep disorder that can make sufferers nod off while standing up,\" Watson replied, \"What is narcolepsy?\"\n\nThe coup de grâce came with the answer, \"William Wilkenson's 'An Account of the Principalities of Wallachia and Moldavia' inspired this author's most famous novel.\" Mr. Jennings wrote, correctly, Bram Stoker, but realized that he could not catch up with Watson's winnings and wrote out his surrender.\n\nBoth players took the contest and its outcome philosophically.\n\n\"I had a great time and I would do it again in a heartbeat,\" said Mr. Jennings. \"It's not about the results; this is about being part of the future.\"\n\nFor I.B.M., the future will happen very quickly, company executives said. On Thursday it plans to announce that it will collaborate with Columbia University and the University of Maryland to create a physician's assistant service that will allow doctors to query a cybernetic assistant. The company also plans to work with Nuance Communications Inc. to add voice recognition to the physician's assistant, possibly making the service available in as little as 18 months.\n\n\"I have been in medical education for 40 years and we're still a very memory-based curriculum,\" said Dr. Herbert Chase, a professor of clinical medicine at Columbia University who is working with I.B.M. on the physician's assistant. \"The power of Watson- like tools will cause us to reconsider what it is we want students to do.\"\n\nI.B.M. executives also said they are in discussions with a major consumer electronics retailer to develop a version of Watson, named after I.B.M.'s founder, Thomas J. Watson, that would be able to interact with consumers on a variety of subjects like buying decisions and technical support.\n\nDr. Ferrucci sees none of the fears that have been expressed by theorists and science fiction writers about the potential of computers to usurp humans.\n\n\"People ask me if this is HAL,\" he said, referring to the computer in \"2001: A Space Odyssey.\" \"HAL's not the focus; the focus is on the computer on 'Star Trek,' where you have this intelligent information seek dialogue, where you can ask follow-up questions and the computer can look at all the evidence and tries to ask follow-up questions. That's very cool.\"";

void Start ()
{
LogSystem.InstallDefaultReactors();
string dataPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/personalityInsights.json";

if(!m_personalityInsights.GetProfile(OnGetProfile, dataPath, DataModels.ContentType.TEXT_PLAIN, DataModels.Language.ENGLISH))
Log.Debug("ExamplePersonalityInsights", "Failed to get profile!");
}

private void OnGetProfile(DataModels.Profile profile, string data)
{
Log.Debug("ExamplePersonalityInsights", "data: {0}", data);
if(profile != null)
{
if(!string.IsNullOrEmpty(profile.id))
Log.Debug("ExamplePersonalityInsights", "id: {0}", profile.id);
if(!string.IsNullOrEmpty(profile.source))
Log.Debug("ExamplePersonalityInsights", "source: {0}", profile.source);
if(!string.IsNullOrEmpty(profile.processed_lang))
Log.Debug("ExamplePersonalityInsights", "proccessed_lang: {0}", profile.processed_lang);
if(!string.IsNullOrEmpty(profile.word_count))
Log.Debug("ExamplePersonalityInsights", "word_count: {0}", profile.word_count);
if(!string.IsNullOrEmpty(profile.word_count_message))
Log.Debug("ExamplePersonalityInsights", "word_count_message: {0}", profile.word_count_message);

if(profile.tree != null)
{
LogTraitTree(profile.tree);
}
}
else
{
Log.Debug("ExamplePersonalityInsights", "Failed to get profile!");
}
}

private void LogTraitTree(DataModels.TraitTreeNode traitTreeNode)
{
if(!string.IsNullOrEmpty(traitTreeNode.id))
Log.Debug("ExamplePersonalityInsights", "id: {0}", traitTreeNode.id);
if(!string.IsNullOrEmpty(traitTreeNode.name))
Log.Debug("ExamplePersonalityInsights", "name: {0}", traitTreeNode.name);
if(!string.IsNullOrEmpty(traitTreeNode.category))
Log.Debug("ExamplePersonalityInsights", "category: {0}", traitTreeNode.category);
if(!string.IsNullOrEmpty(traitTreeNode.percentage))
Log.Debug("ExamplePersonalityInsights", "percentage: {0}", traitTreeNode.percentage);
if(!string.IsNullOrEmpty(traitTreeNode.sampling_error))
Log.Debug("ExamplePersonalityInsights", "sampling_error: {0}", traitTreeNode.sampling_error);
if(!string.IsNullOrEmpty(traitTreeNode.raw_score))
Log.Debug("ExamplePersonalityInsights", "raw_score: {0}", traitTreeNode.raw_score);
if(!string.IsNullOrEmpty(traitTreeNode.raw_sampling_error))
Log.Debug("ExamplePersonalityInsights", "raw_sampling_error: {0}", traitTreeNode.raw_sampling_error);
if(traitTreeNode.children != null && traitTreeNode.children.Length > 0)
foreach(DataModels.TraitTreeNode childNode in traitTreeNode.children)
LogTraitTree(childNode);
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Examples/ServiceExamples/Scripts/ExampleVisualRecognition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
public class ExampleVisualRecognition : MonoBehaviour {
private VisualRecognition m_VisualRecognition = new VisualRecognition();
private string m_classifierName = "Apples_OptionalParams";
private string m_classifierID = "Apples_OptionalParams_1213405640";
private string m_classifierID = "ApplesClassifierNameWithSpaces_73100404";
private string m_classifierToDelete = "unitytestclassifier2b_37849361";
private string m_imageURL = "https://upload.wikimedia.org/wikipedia/commons/e/e9/Official_portrait_of_Barack_Obama.jpg";
private string m_imageTextURL = "http://i.stack.imgur.com/ZS6nH.png";
Expand All @@ -36,7 +36,7 @@ void Start ()
// Get all classifiers
if(!m_VisualRecognition.GetClassifiers(OnGetClassifiers))
Log.Debug("ExampleVisualRecognition", "Getting classifiers failed!");

//
// Find classifier by name
m_VisualRecognition.FindClassifier(m_classifierName, OnFindClassifier);

Expand All @@ -49,17 +49,17 @@ void Start ()
Log.Debug("ExampleVisualRecognition", "Deleting classifier failed!");

// Train classifier
string m_positiveExamplesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/taj_positive_examples.zip";
string m_negativeExamplesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/negative_examples.zip";
if(!m_VisualRecognition.TrainClassifier("unity-test-classifier5", "taj", m_positiveExamplesPath, m_negativeExamplesPath, OnTrainClassifier))
string m_positiveExamplesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/giraffe_positive_examples.zip";
string m_negativeExamplesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/negative_examples.zip";
if(!m_VisualRecognition.TrainClassifier("unity-test-classifier5", "giraffe", m_positiveExamplesPath, m_negativeExamplesPath, OnTrainClassifier))
Log.Debug("ExampleVisualRecognition", "Train classifier failed!");

// Classify get
if(!m_VisualRecognition.Classify(m_imageURL, OnClassify))
Log.Debug("ExampleVisualRecognition", "Classify image failed!");

// Classify post image
string m_imagesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/obama.jpg";
string m_imagesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/obama.jpg";
string[] m_owners = {"IBM", "me"};
string[] m_classifierIDs = {"default"};
if(!m_VisualRecognition.Classify(OnClassify, m_imagesPath, m_owners, m_classifierIDs, 0.5f))
Expand All @@ -71,7 +71,7 @@ void Start ()
Log.Debug("ExampleVisualRecogntiion", "Detect faces failed!");

// Detect faces post image
string m_faceExamplePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/obama.jpg";
string m_faceExamplePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/obama.jpg";
if(!m_VisualRecognition.DetectFaces(OnDetectFaces, m_faceExamplePath))
Log.Debug("ExampleVisualRecognition", "Detect faces failed!");

Expand All @@ -82,7 +82,7 @@ void Start ()
Log.Debug("ExampleVisualRecognition", "Recognize text failed!");

// Recognize text post image
string m_textExamplePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/from_platos_apology.png";
string m_textExamplePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/from_platos_apology.png";
if(!m_VisualRecognition.RecognizeText(OnRecognizeText, m_textExamplePath))
Log.Debug("ExampleVisualRecognition", "Recognize text failed!");
}
Expand Down
Loading