This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Map; | |
import org.apache.commons.lang3.StringUtils; | |
import com.ibm.watson.developer_cloud.alchemy.v1.AlchemyDataNews; | |
import com.ibm.watson.developer_cloud.alchemy.v1.model.DocumentsResult; | |
public class AlchemyDataNewsExample { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alchemy,5fc91e98eacfa5ebf83440e8c6a61d0f60fa380b | |
tts new : 57cff686-3359-43c6-bfd7-19caaf925055 | |
dNMDbaACLSDb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//TBD . Alchemy Proxy not working |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TBD. No support for Proxy for Alchemy Srevices in Java Language. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// print Hello world! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Map; | |
import org.apache.commons.lang3.StringUtils; | |
import com.ibm.watson.developer_cloud.alchemy.v1.AlchemyDataNews; | |
import com.ibm.watson.developer_cloud.alchemy.v1.model.DocumentsResult; | |
public class AlchemyDataNewsExample { | |
public static void main(String[] args) { | |
AlchemyDataNews service = new AlchemyDataNews(); | |
service.setApiKey(""); | |
Map<String, Object> params = new HashMap<String, Object>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var watson = require('watson-developer-cloud'); | |
var language_translation = watson.language_translation({ | |
version: 'v2' | |
}); | |
language_translation.translate({ | |
text: 'hello', | |
source: 'en', | |
target: 'es' | |
}, function(err, translation) { | |
if (err) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var watson = require('watson-developer-cloud'); | |
var language_translation = watson.language_translation({ | |
//username: Your Username | |
//password: Your Password | |
version: 'v2' | |
}); | |
language_translation.translate({ | |
text: 'hello', | |
source: 'en', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// format | |
// Service Name = Gist Link | |
// TBD | |
AlchemyLanguage,TBD | |
ConceptInsights,https://gist.github.com/snippet-java/79ad33aceb36659a1a302b3356d19cc1 | |
Conversation,https://gist.github.com/snippet-java/897606155eabcbb55bb415a4696434af | |
Dialog,https://gist.github.com/snippet-java/0d3d4233ea25e6b85e8c05d8c88a4a29 | |
DocumentConversion,https://gist.github.com/snippet-java/fbfa89756c2d7b41be5c688c0804ca56 | |
LanguageTranslation,https://gist.github.com/snippet-java/4006caa10f1ebd3c9cd7e9e58a01e769 | |
NaturalLanguageClassifier,https://gist.github.com/snippet-java/13449e3a64a0ecbcad5d29a4d6f6dada |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var watson = require('watson-developer-cloud'); | |
var concept_insights = watson.concept_insights({ | |
//username: Your Username, | |
//password: Your Password, | |
version: 'v2' | |
}); |
OlderNewer