ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1698230 - /ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/SHARPXMI.java
Date Thu, 27 Aug 2015 20:59:21 GMT
Author: clin
Date: Thu Aug 27 20:59:21 2015
New Revision: 1698230

URL: http://svn.apache.org/r1698230
Log:
fixed an error in SHARPXMI.java

Modified:
    ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/SHARPXMI.java

Modified: ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/SHARPXMI.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/SHARPXMI.java?rev=1698230&r1=1698229&r2=1698230&view=diff
==============================================================================
--- ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/SHARPXMI.java
(original)
+++ ctakes/trunk/ctakes-relation-extractor/src/main/java/org/apache/ctakes/relationextractor/eval/SHARPXMI.java
Thu Aug 27 20:59:21 2015
@@ -183,7 +183,7 @@ public class SHARPXMI {
             JCas jCas = casIter.next();
             JCas goldView = jCas.getView( GOLD_VIEW_NAME );
             String documentID = DocumentIDAnnotationUtil.getDocumentID( goldView );
-            if ( documentID == null || documentID.equals( DocumentIDAnnotationUtil.NO_DOCUMENT_ID
) ) {
+            if ( documentID == null ){//|| documentID.equals( DocumentIDAnnotationUtil.NO_DOCUMENT_ID
) ) {
                throw new IllegalArgumentException( "No documentID for CAS:\n" + jCas );
             }
             File outFile = toXMIFile( options, new File( documentID ) );



Mime
View raw message