ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject svn commit: r1515551 - in /ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr: MiPACQKnowtatorXMLReader.java NegExAnnotation.java NegExCorpusReader.java
Date Mon, 19 Aug 2013 18:40:30 GMT
Author: swu
Date: Mon Aug 19 18:40:29 2013
New Revision: 1515551

URL: http://svn.apache.org/r1515551
Log:
slight changes in readers for assertion corpora

Modified:
    ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/MiPACQKnowtatorXMLReader.java
    ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/NegExAnnotation.java
    ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/NegExCorpusReader.java

Modified: ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/MiPACQKnowtatorXMLReader.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/MiPACQKnowtatorXMLReader.java?rev=1515551&r1=1515550&r2=1515551&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/MiPACQKnowtatorXMLReader.java
(original)
+++ ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/MiPACQKnowtatorXMLReader.java
Mon Aug 19 18:40:29 2013
@@ -16,7 +16,7 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.ctakes.core.ae;
+package org.apache.ctakes.assertion.cr;
 
 import java.io.File;
 import java.io.IOException;

Modified: ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/NegExAnnotation.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/NegExAnnotation.java?rev=1515551&r1=1515550&r2=1515551&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/NegExAnnotation.java
(original)
+++ ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/NegExAnnotation.java
Mon Aug 19 18:40:29 2013
@@ -108,8 +108,8 @@ public class NegExAnnotation {
 			possible = "0";
 		}
 		
-		if (fields.length > 4 && fields[4]!=null && fields[4].length()>0)
throw new RuntimeException("Does not support temporality yet");
-		if (fields.length > 5 && fields[5]!=null && fields[5].length()>0)
throw new RuntimeException("Does not support experiencer yet");
+//		if (fields.length > 4 && fields[4]!=null && fields[4].length()>0)
throw new RuntimeException("Does not support temporality yet");
+//		if (fields.length > 5 && fields[5]!=null && fields[5].length()>0)
throw new RuntimeException("Does not support experiencer yet");
 
 	}
 	

Modified: ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/NegExCorpusReader.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/NegExCorpusReader.java?rev=1515551&r1=1515550&r2=1515551&view=diff
==============================================================================
--- ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/NegExCorpusReader.java
(original)
+++ ctakes/trunk/ctakes-assertion/src/main/java/org/apache/ctakes/assertion/cr/NegExCorpusReader.java
Mon Aug 19 18:40:29 2013
@@ -28,6 +28,7 @@ import org.apache.ctakes.assertion.medfa
 import org.apache.ctakes.assertion.util.AssertionConst;
 import org.apache.ctakes.core.util.CtakesFileNamer;
 import org.apache.ctakes.typesystem.type.structured.DocumentID;
+import org.apache.ctakes.typesystem.type.textsem.EventMention;
 import org.apache.ctakes.typesystem.type.textsem.IdentifiedAnnotation;
 import org.apache.log4j.Logger;
 import org.apache.uima.analysis_engine.AnalysisEngineDescription;
@@ -55,7 +56,7 @@ import org.uimafit.pipeline.SimplePipeli
 public class NegExCorpusReader extends CollectionReader_ImplBase {
   static Logger LOGGER = Logger.getLogger(NegExCorpusReader.class);
   
-  private boolean skipReadingValuesJustReadText;
+  private boolean skipReadingValuesJustReadText = false;
   
   private static TypeSystemDescription typeSystemDescription = AssertionComponents.CTAKES_CTS_TYPE_SYSTEM_DESCRIPTION;
// TypeSystemDescriptionFactory.createTypeSystemDescriptionFromPath();//.createTypeSystemDescription();
 
@@ -200,7 +201,7 @@ public void getNext(CAS aCAS) throws IOE
 	DocumentID documentID = new DocumentID(jCas);
 	documentID.setDocumentID("doc" + a.lineNumber);
 	documentID.addToIndexes();
-	IdentifiedAnnotation ia = new IdentifiedAnnotation(jCas);
+	EventMention ia = new EventMention(jCas);
 	ia.setBegin(Integer.parseInt(a.begin));
 	ia.setEnd(Integer.parseInt(a.end));
 	if (!skipReadingValuesJustReadText) ia.setPolarity(Integer.parseInt(a.polarity));



Mime
View raw message