You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2013/02/26 09:40:59 UTC

svn commit: r1450076 - /stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl

Author: rwesten
Date: Tue Feb 26 08:40:58 2013
New Revision: 1450076

URL: http://svn.apache.org/r1450076
Log:
STANBOL-963: the entities template now prints unknown if an Enhancement does not provide a fise:confidence value

Modified:
    stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl

Modified: stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl
URL: http://svn.apache.org/viewvc/stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl?rev=1450076&r1=1450075&r2=1450076&view=diff
==============================================================================
--- stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl (original)
+++ stanbol/trunk/enhancer/jersey/src/main/resources/templates/imports/entities.ftl Tue Feb 26 08:40:58 2013
@@ -35,8 +35,9 @@
     <#if entity.name != entity.selected>for:'${entity.selected}',</#if>
     <#if entity.mentions?size &gt; 1>${entity.mentions?size} mentions
     <#else>
-      <#if entity.hasOccurrence()>pos:[${entity.start},${entity.end}]</#if></#if>,
-     conf:${entity.confidence?string("0.##")}</span>
+      <#if entity.hasOccurrence()>pos:[${entity.start},${entity.end}]</#if></#if>
+      ,conf:<#if entity.confidence??>${entity.confidence?string("0.##")}<#else>unknown</#if>
+    </span>
   </th>
 </tr>
 </thead>