' + "\n";
for( var i = 0; i < type_length; i += 2 )
{
type_content += '
' + "\n";
var analyzer_parts = analysis_data[type][i].split( '.' );
var analyzer_parts_name = analyzer_parts.pop();
var analyzer_parts_namespace = analyzer_parts.join( '.' ) + '.';
type_content += '
' +
analyzer_parts_name + '
' + "\n";
var raw_parts = {
'position' : [],
'text' : [],
'type' : [],
'start-end' : []
};
for( var k in analysis_data[type][i+1] )
{
var pos = analysis_data[type][i+1][k]['position'] - 1;
var is_match = !!analysis_data[type][i+1][k]['match'];
if( 'undefined' === typeof raw_parts['text'][pos] )
{
raw_parts['position'][pos] = [];
raw_parts['text'][pos] = [];
raw_parts['type'][pos] = [];
raw_parts['start-end'][pos] = [];
raw_parts['position'][pos].push( '
' + analysis_data[type][i+1][k]['position'] + '
' );
}
raw_parts['text'][pos].push( '
' + analysis_data[type][i+1][k]['text'] + '
' );
raw_parts['type'][pos].push( '
' + analysis_data[type][i+1][k]['type'] + '
' );
raw_parts['start-end'][pos].push( '
' + analysis_data[type][i+1][k]['start'] + '–' + analysis_data[type][i+1][k]['end'] + '
' );
}
var parts = {
'position' : [],
'text' : [],
'type' : [],
'start-end' : []
};
for( var key in raw_parts )
{
var length = raw_parts[key].length;
for( var j = 0; j < length; j++ )
{
if( raw_parts[key][j] )
{
parts[key].push( '
' + raw_parts[key][j].join( "\n" ) + ' | ' );
}
else
{
parts[key].push( '
∅ | ' );
}
}
}
type_content += '
' + "\n";
type_content += '
' + "\n";
type_content += '' + "\n";
type_content += 'P | ' + "\n";
type_content += parts['position'].join( "\n" ) + "\n";
type_content += '
' + "\n";
type_content += '' + "\n";
type_content += 'T | ' + "\n";
type_content += parts['text'].join( "\n" ) + "\n";
type_content += '
' + "\n";
type_content += '' + "\n";
type_content += 'T | ' + "\n";
type_content += parts['type'].join( "\n" ) + "\n";
type_content += '
' + "\n";
type_content += '' + "\n";
type_content += 'R | ' + "\n";
type_content += parts['start-end'].join( "\n" ) + "\n";
type_content += '
' + "\n";
type_content += '
' + "\n";
type_content += '
' + "\n";
type_content += '
' + "\n";
}
type_content += '