derekokvecs: provide some marginal/meta data in CA
diff --git a/templates/index.html.ep b/templates/index.html.ep
index 556c3f1..0b19de5 100644
--- a/templates/index.html.ep
+++ b/templates/index.html.ep
@@ -281,12 +281,19 @@
}
// var filterQuot = /(^quot?=[A-Z])|(quot$)/g;
var filterQuot = /^quot/;
+ var ccResult;
classicCollocatorTable = $('#classicoloctable').DataTable({
ajax: {
method: "GET",
url: '/derekovecs/getClassicCollocators',
dataType: 'json',
- dataSrc: "",
+ dataSrc: function (result) {
+ ccResult = result;
+ $("#rawfreq_tt").attr("title", "Raw frequencies of the co-occurence.\n"
+ + "f(" + ccResult.w1+")=" + ccResult.f1.toLocaleString("en-GB") + ";\n"
+ + "N=" + ccResult.N.toLocaleString("en-GB"));
+ return result.collocates;
+ },
timeout: 30000,
data: { w: paraResults[0][0].rank }
},
@@ -937,7 +944,7 @@
<th title="PMI³ restricted to right neighbour">r-PMI³</th>
<th title="nPMI restricted to left neighbour">l-nPMI</th>
<th title="nPMI restricted to right neighbour">r-nPMI</th>
- <th title="raw frequency sum of collocation within window">raw</th>
+ <th id="rawfreq_tt" title="raw frequency sum of collocation within window">raw</th>
<th>collocate (by CA)</th>
</tr>
% }