ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1720016 - /ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/XmiWriterCasConsumerCtakes.java
Date Mon, 14 Dec 2015 21:15:44 GMT
Author: clin
Date: Mon Dec 14 21:15:44 2015
New Revision: 1720016

URL: http://svn.apache.org/viewvc?rev=1720016&view=rev
Log:
Use cleartk's ViewUriUtil instead of DocumentIDAnnotationUtil to retrieve document uri

Modified:
    ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/XmiWriterCasConsumerCtakes.java

Modified: ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/XmiWriterCasConsumerCtakes.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/XmiWriterCasConsumerCtakes.java?rev=1720016&r1=1720015&r2=1720016&view=diff
==============================================================================
--- ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/XmiWriterCasConsumerCtakes.java
(original)
+++ ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/cc/XmiWriterCasConsumerCtakes.java
Mon Dec 14 21:15:44 2015
@@ -54,6 +54,7 @@ import org.apache.uima.util.InvalidXMLEx
 import org.apache.uima.util.UriUtils;
 import org.apache.uima.util.XMLInputSource;
 import org.apache.uima.util.XMLSerializer;
+import org.cleartk.util.ViewUriUtil;
 import org.xml.sax.SAXException;
 
 import java.io.File;
@@ -112,7 +113,7 @@ public class XmiWriterCasConsumerCtakes
          throw new AnalysisEngineProcessException( e1 );
       }
 
-      String originalFileName = DocumentIDAnnotationUtil.getDocumentID( jcas );
+      String originalFileName = ViewUriUtil.getURI(jcas).toString();//DocumentIDAnnotationUtil.getDocumentID(
jcas );
       File outFile = null;
       if ( originalFileName != null
            && !originalFileName.isEmpty()



Mime
View raw message