aboutsummaryrefslogtreecommitdiff
path: root/src/client/apis/IBM_Recommender.ts
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-11-16 16:45:41 -0500
committerab <abdullah_ahmed@brown.edu>2019-11-16 16:45:41 -0500
commite103be2d58da2a6809dd4ad5f0b5f445d8d6c96b (patch)
tree7f3ba5d06546adc8a9ae537f7253f6791e213601 /src/client/apis/IBM_Recommender.ts
parentf7e101dfc7bc9e81ca03730865740360a831285a (diff)
ibm integrated, bing search -> server next time
Diffstat (limited to 'src/client/apis/IBM_Recommender.ts')
-rw-r--r--src/client/apis/IBM_Recommender.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/apis/IBM_Recommender.ts b/src/client/apis/IBM_Recommender.ts
index 5f80f5126..da6257f28 100644
--- a/src/client/apis/IBM_Recommender.ts
+++ b/src/client/apis/IBM_Recommender.ts
@@ -16,19 +16,19 @@ export namespace IBM_Recommender {
});
const analyzeParams = {
- 'url': 'www.ibm.com',
+ 'text': 'this is a test of the keyword extraction feature I am integrating into the program',
'features': {
'keywords': {
'sentiment': true,
'emotion': true,
'limit': 3
- }
+ },
}
};
export const analyze = async (_parameters: any): Promise<Opt<string>> => {
try {
- const response = await naturalLanguageUnderstanding.analyze(analyzeParams);
+ const response = await naturalLanguageUnderstanding.analyze(_parameters);
console.log(response);
return (JSON.stringify(response, null, 2));
} catch (err) {