aboutsummaryrefslogtreecommitdiff
path: root/src/client/apis/IBM_Recommender.ts
diff options
context:
space:
mode:
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) {