aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.tsx
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-08-29 18:43:32 -0400
committerab <abdullah_ahmed@brown.edu>2019-08-29 18:43:32 -0400
commite0bfe978e029268b3901b5d098f946b1a6fc7d0d (patch)
tree72720028c5490417efd74766fc7910793d0c3204 /src/client/views/nodes/ImageBox.tsx
parent72a867862313aa2063e346a777d6b73e69b4c0ae (diff)
ui fixes, datadoc resolved
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r--src/client/views/nodes/ImageBox.tsx16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx
index ec35465eb..d94e92847 100644
--- a/src/client/views/nodes/ImageBox.tsx
+++ b/src/client/views/nodes/ImageBox.tsx
@@ -240,22 +240,6 @@ export class ImageBox extends DocComponent<FieldViewProps, ImageDocument>(ImageD
}
}
- extractText = async () => {
- //let activedocs = this.getActiveDocuments();
- let allDocs = await SearchUtil.GetAllDocs();
- allDocs.forEach(doc => console.log(doc.title));
- // clears internal representation of documents as vectors
- ClientRecommender.Instance.reset_docs();
- await Promise.all(allDocs.map((doc: Doc) => {
- //console.log(StrCast(doc.title));
- if (doc.type === DocumentType.IMG) {
- const extdoc = doc.data_ext as Doc;
- return ClientRecommender.Instance.extractText(doc, extdoc ? extdoc : doc);
- }
- }));
- console.log(ClientRecommender.Instance.createDistanceMatrix());
- }
-
generateMetadata = (threshold: Confidence = Confidence.Excellent) => {
let converter = (results: any) => {
let tagDoc = new Doc;