aboutsummaryrefslogtreecommitdiff
path: root/src/client/cognitive_services
diff options
context:
space:
mode:
authorAbdullah Ahmed <abdullah_ahmed@brown.edu>2019-09-16 14:27:36 -0400
committerAbdullah Ahmed <abdullah_ahmed@brown.edu>2019-09-16 14:27:36 -0400
commit3f63b49ccc1ebcbeac64443702826ea4597200f3 (patch)
tree0e048fc5730a1e5da648b7ed159c3e6b63fd04ec /src/client/cognitive_services
parentf8eabfdbf30e13bc792ddf321d15e325c9da4944 (diff)
ui changes
Diffstat (limited to 'src/client/cognitive_services')
-rw-r--r--src/client/cognitive_services/CognitiveServices.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/cognitive_services/CognitiveServices.ts b/src/client/cognitive_services/CognitiveServices.ts
index eb1dd5197..8a58355a8 100644
--- a/src/client/cognitive_services/CognitiveServices.ts
+++ b/src/client/cognitive_services/CognitiveServices.ts
@@ -285,14 +285,14 @@ export namespace CognitiveServices {
});
}
- export const analyzer = async (dataDoc: Doc, target: Doc, keys: string[], data: string, converter: TextConverter, mainDoc: boolean = false) => {
+ export const analyzer = async (dataDoc: Doc, target: Doc, keys: string[], data: string, converter: TextConverter, mainDoc: boolean = false, internal: boolean = true) => {
let results = await ExecuteQuery(Service.Text, Manager, data);
console.log(results);
let keyterms = converter(results, data);
//target[keys[0]] = Docs.Get.DocumentHierarchyFromJson(results, "Key Word Analysis");
target[keys[0]] = keyterms.keyterms;
console.log("analyzed!");
- await vectorize(keyterms.keyterms_counted, dataDoc, mainDoc, data);
+ if (internal) await vectorize(keyterms.keyterms_counted, dataDoc, mainDoc, data);
};
// export async function countFrequencies()