Added corpus statistic to vcdemo
Change-Id: I10363f67f6834466c2d90fecf1d387069eb08390
diff --git a/dev/demo/vcdemo.js b/dev/demo/vcdemo.js
index 2dc5767..b1bf843 100644
--- a/dev/demo/vcdemo.js
+++ b/dev/demo/vcdemo.js
@@ -92,9 +92,18 @@
}
];
+
require(['vc','lib/domReady', 'lib/highlight/highlight.pack'], function (vcClass, domReady) {
var loc = KorAP.Locale;
+
+ //corpus statistic
+ var statistic = {
+ "documents":1,
+ "tokens":222222,
+ "sentences":33333,
+ "paragraphs":444
+ };
/*
loc.AND = 'und';
@@ -134,5 +143,11 @@
KorAP.makeVCPersistant = function () {
vc.makePersistant();
};
- });
+
+ //get the corpus statistic (demo function)
+ KorAP.API.getCorpStat = function(collQu, cb){
+ return cb(statistic);
+ };
});
+});
+