Skip to content

Commit

Permalink
Updated highcharts library to latest version (3.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmadnani committed Apr 10, 2013
1 parent f08f773 commit a857d82
Show file tree
Hide file tree
Showing 3 changed files with 536 additions and 443 deletions.
30 changes: 14 additions & 16 deletions bleu.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<script src="js/utils.js" type="text/javascript"></script>
<script src="js/lcs.js" type="text/javascript"></script>
<script src="js/highcharts.js" type="text/javascript"></script>
<script src="js/highcharts.theme.gray.js" type="text/javascript"></script>
<script src="js/gray.js" type="text/javascript"></script>

</head>

Expand Down Expand Up @@ -203,11 +203,9 @@

// Compute the length ratio of the segment length to the average reference length
var lenratio = lengths[0]/avgreflen;

$('#segDetailContainer').show();

var elt = document.getElementById('segDetailContainer');
var reflens = lengths.slice(1);
var elt = document.getElementById('segDetailContainer');
var reflens = lengths.slice(1);

// Compute the longest common subsequence (LCS) between the appropriate
// items: when there is a single system, then between the hyp and the ref(s)
Expand Down Expand Up @@ -972,21 +970,21 @@
}

// clear everything else
$('#bleuSegPlot').html("");
$('#bleuDocPlotsContainer').html("");
$('#bleuDocPlotsContainer').hide();
$('#bleuSegPlotContainer').hide();
$('#segDetailContainer').html("");
$('#bleuSegPlot').html("");
$('#bleuDocPlotsContainer').html("");
$('#bleuDocPlotsContainer').hide();
$('#bleuSegPlotContainer').hide();
$('#segDetailContainer').html("");
allDocPlots = [];

var scores = [];
var brevities = [];
var precisions = [];
var sysids = [];
var srclang = srcSets.length > 0 ? srcSets[0].srclang : undefined;
var scores = [];
var brevities = [];
var precisions = [];
var sysids = [];
var srclang = srcSets.length > 0 ? srcSets[0].srclang : undefined;

// Compute the bleu scores for the first system ...
scontainer = scoreSystem(tstSets[0], refSets);
scontainer = scoreSystem(tstSets[0], refSets);
for (sysid in scontainer.bleuObjects) {
var bo = scontainer.bleuObjects[sysid];
scores.push(bo.computeBLEU());
Expand Down
Loading

0 comments on commit a857d82

Please sign in to comment.