Revision: 16108
          http://gate.svn.sourceforge.net/gate/?rev=16108&view=rev
Author:   valyt
Date:     2012-10-03 14:12:47 +0000 (Wed, 03 Oct 2012)
Log Message:
-----------
Use annotation type rather than mention URI when no actual description is 
possible. This allows the merging of all such terms by client code, if desired.

Modified Paths:
--------------
    mimir/trunk/mimir-core/src/gate/mimir/util/DefaultMentionDescriber.java
    mimir/trunk/mimir-core/src/gate/mimir/util/OntologyMentionDescriber.java

Modified: 
mimir/trunk/mimir-core/src/gate/mimir/util/DefaultMentionDescriber.java
===================================================================
--- mimir/trunk/mimir-core/src/gate/mimir/util/DefaultMentionDescriber.java     
2012-10-03 14:09:23 UTC (rev 16107)
+++ mimir/trunk/mimir-core/src/gate/mimir/util/DefaultMentionDescriber.java     
2012-10-03 14:12:47 UTC (rev 16108)
@@ -41,7 +41,7 @@
     if(descriptiveFeatureValues == null || 
        descriptiveFeatureNames == null ||
        descriptiveFeatureValues.length < descriptiveFeatureNames.length) {
-      return mentionUri;
+      return helper.getAnnotationType();
     } else {
       StringBuilder res = new StringBuilder("{");
       res.append(helper.getAnnotationType());

Modified: 
mimir/trunk/mimir-core/src/gate/mimir/util/OntologyMentionDescriber.java
===================================================================
--- mimir/trunk/mimir-core/src/gate/mimir/util/OntologyMentionDescriber.java    
2012-10-03 14:09:23 UTC (rev 16107)
+++ mimir/trunk/mimir-core/src/gate/mimir/util/OntologyMentionDescriber.java    
2012-10-03 14:12:47 UTC (rev 16108)
@@ -96,7 +96,7 @@
         descriptiveFeatureValues.length < descriptiveFeatureNames.length ||
         descriptiveFeatureNames.length == 0 ||
         descriptiveFeatureValues[0] == null) {
-      return mentionUri;
+      return helper.getAnnotationType();
     } else {
       StringBuilder res = new StringBuilder(
         getName(descriptiveFeatureValues[0]));

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
GATE-cvs mailing list
GATE-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to