watson-developer-cloud / unity-sdk

:video_game: Unity SDK to use the IBM Watson services.
Apache License 2.0
571 stars 206 forks source link

Abstract Watson Machine Learning to the Watson Unity SDK #431

Closed castana1962 closed 6 years ago

castana1962 commented 6 years ago

Hi I would need to integrate Watson Machine Learning Service to Unity. Is it possible? If it is like that, please let me know how do it? Is there any Learning Machine service Unity example in the SDK 2.5.0? Thanks for your time Alejandro

Remember, an issue is not the place to ask questions. You can use Stack Overflow for that, or you may want to start a discussion on the dW Answers.

Before you open an issue, please check if a similar issue already exists or has been closed before.

When reporting a bug, please be sure to include the following:

When you open an issue for a feature request, please add as much detail as possible:

mediumTaj commented 6 years ago

Hi @castana1962 Currently we do not abstract the Watson Machine Learning Service into any of the Watson SDKs. This may happen in the future but currently is not in our development roadmap.

castana1962 commented 6 years ago

Hi mediumTaj, Thanks for the info. Since I need to make a comparison from two texts or two audios (one of the voice player and the other a resource saved into the game) and get an answer Great!!! if she is similar between them or Close, I try again if both are different. Is there currently any Watson service in the SDK that allows me to do this? Or should I create an own method in Unity to do it? Please let me know your opinion about it? Thanks for your time Alejandro Castan

castana1962 commented 6 years ago

Hi mediumTaj, Since that you told me that the Watson Machine Learning Service currently is not in our development roadmap in Watson SDK for Unity , How would you recommend to consume Machine Learning with Unity?" Via REST APIs? If it is like that, Could you advice me how to do it? Thanks for your time and patience....

mediumTaj commented 6 years ago

Yes you can look at the Watson Unity SDK and look how any of the services are abstracted (maybe see Assistant.cs). The REST API can be found here. The only issue is the RESTConnector we use for the Unity SDK does not support PUT operations. I believe UnityWebRequest does though.

castana1962 commented 6 years ago

Hi mediumTaj, First thanks for your support On the other hand, I was looking at the UnityWebRequest in Unity APIs and it supports PUT Operations, please see here

https://docs.unity3d.com/ScriptReference/Networking.UnityWebRequest.html

Since I am new in this topic and The UnityWebRequest object is used to communicate with web servers, for it, Could I use it to interact Watson Machine Learning services and Unity? Thanks again

mediumTaj commented 6 years ago

Yes! you can use UnityWebRequest to make REST requests to the Watson Machine Learning API. Currently we are using WWW class in RESTConnector.cs but a new class that uses UnityWebRequest would be preferable. I have an issue here to transition this over but I think a new class would be more appropriate. If you have some time to take this on please let me know!

castana1962 commented 6 years ago

Hi again Ok, I will try it and I will tell you. Thanks

castana1962 commented 6 years ago

Hi mediumTaj I found in Github this Unity plugin to do HTTP Request and I asked to the developer if I could use it to interact with Watson Machine Learning and he told YES, I can do it

more info here https://github.com/proyecto26/RestClient

For it, Please let me know your opinion about it Thanks for your time Best Regards

mediumTaj commented 6 years ago

It looks pretty good 👍 !

castana1962 commented 6 years ago

Ok, So, I will try it and I will tell you. Thanks for your advice

jdnichollsc commented 6 years ago

@castana1962 Hi there, this is the creator of the RestClient plugin for Unity What endpoints of the IBM Watson Machine Learning API are you trying to use? If you show me the code, I can help you.

Thanks for using my plugin 👍 Best regards, Nicholls

castana1962 commented 6 years ago

@jdnichollsc Hi, Great and thanks for your help !!!. On the other hand @mediumTaj Could you let me know What endpoints of the IBM Watson Machine Learning API should I use? and if it is possible Could you show me the code to do it?. Thanks to all !!!!

mediumTaj commented 6 years ago

The REST API can be found here: https://watson-ml-api.mybluemix.net/

jdnichollsc commented 6 years ago

@mediumTaj I can see a lot of endpoints in that API, @castana1962 what methods are required to implement? On the other hand, @mediumTaj can you replace the implementation using RESTConnector with my plugin? what do you think? Regards, Nicholls

mediumTaj commented 6 years ago

@jdnichollsc I am working on the next major release of the SDK. One of the issues is support for UnityWebRequest. I'm still researching the topic.

jdnichollsc commented 6 years ago

@mediumTaj ohh sounds great! I'm using the UnityWebRequest system in my plugin 👍

castana1962 commented 6 years ago

@jdnichollsc @mediumTaj
Great News !!!! Please let me know when it is ready !!!