Merge "Fix all demo to provide example corpus statistics" into corpStat
diff --git a/dev/demo/alldemo.js b/dev/demo/alldemo.js
index 3b75c80..b5a5831 100644
--- a/dev/demo/alldemo.js
+++ b/dev/demo/alldemo.js
@@ -747,6 +747,14 @@
}
};
+//corpus statistic
+var statistic = {
+ "documents":1,
+ "tokens":222222,
+ "sentences":33333,
+ "paragraphs":444
+};
+
requirejs.config({
baseUrl: '../js/src',
paths : {
@@ -782,6 +790,12 @@
KorAP.API.getTextInfo = function (doc, param, cb) {
cb(textInfo);
};
+
+ //get the corpus statistic (demo function)
+ KorAP.API.getCorpStat = function(collQu, cb){
+ return cb(statistic);
+ };
+
/**
* Do some things at the beginning.