Merge "Added corpus statistic to vcdemo" into corpStat
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);
+ };
});
+});
+