<% if ( row == -1 ) { %>
|
<%= (slot==null? " ": slot.getName()) %>
|
<%= (slot==null? "Query": query.getSlotValue(slot)) %>
|
<% } else { %>
<% if ( row%2 == 0 ) { %>
<%= (slot==null? " ": slot.getName()) %>
|
<%= (slot==null? "Query": query.getSlotValue(slot)) %>
|
<% } else { %>
<%= (slot==null? " ": slot.getName()) %>
|
<%= (slot==null? "Query": query.getSlotValue(slot)) %>
|
<% } %>
<% }
for ( int i = begin; i < end; i++ ) {
AssessedInstance assessedInstance = (AssessedInstance)ranking.get(i);
Explanation explanation = assessedInstance.explanation;
if ( slot != null ) {
explanation = assessedInstance.explanation.getLocalExplanation(slot);
}
String explanationTxt = "?";
if ( explanation != null ) {
explanationTxt = explanation.getComments().replaceAll("\n", "; ")
+ "Similarity: "
+ Helper.getSimilarityStr(explanation.getSimilarity());
}
if ( slot == null ) { %>
<%= "Rank: " + (i+1) + " Name: "
+ assessedInstance.inst.getName()
+ " Similarity: "
+ Helper.getSimilarityStr(assessedInstance.similarity) %>
|
<% } else if ( row != -1 ) {
if ( row%2 == 0 ) { %>
<%= assessedInstance.inst.getSlotValue(slot)%>
<% } else { %>
|
<%= assessedInstance.inst.getSlotValue(slot)%>
<% } %>
|
<% } %>
<% } %>
<% } %>