ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlig...@apache.org
Subject svn commit: r1690779 - in /ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes: pipelines/ClinicalConceptViewer.java pipelines/SemanticTypePrinter.java semtype/SemanticTypePrinter.java
Date Mon, 13 Jul 2015 17:56:34 GMT
Author: dligach
Date: Mon Jul 13 17:56:34 2015
New Revision: 1690779

URL: http://svn.apache.org/r1690779
Log:
no need to lowercase

Added:
    ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/SemanticTypePrinter.java
      - copied, changed from r1690776, ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/semtype/SemanticTypePrinter.java
Removed:
    ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/semtype/SemanticTypePrinter.java
Modified:
    ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/ClinicalConceptViewer.java

Modified: ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/ClinicalConceptViewer.java
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/ClinicalConceptViewer.java?rev=1690779&r1=1690778&r2=1690779&view=diff
==============================================================================
--- ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/ClinicalConceptViewer.java
(original)
+++ ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/ClinicalConceptViewer.java
Mon Jul 13 17:56:34 2015
@@ -75,15 +75,15 @@ public class ClinicalConceptViewer {
       } catch (CASException e) {
         throw new AnalysisEngineProcessException(e);
       }
-
-      for(IdentifiedAnnotation mention : JCasUtil.select(systemView, EventMention.class))
{
-        String text = mention.getCoveredText().toLowerCase();
+      
+      for(IdentifiedAnnotation mention : JCasUtil.select(systemView, EntityMention.class))
{
+        String text = mention.getCoveredText();
         String semanticType = mention.getClass().getSimpleName();
         System.out.format("%s|%s\n", text, semanticType);
       }
       
-      for(IdentifiedAnnotation mention : JCasUtil.select(systemView, EntityMention.class))
{
-        String text = mention.getCoveredText().toLowerCase();
+      for(IdentifiedAnnotation mention : JCasUtil.select(systemView, EventMention.class))
{
+        String text = mention.getCoveredText();
         String semanticType = mention.getClass().getSimpleName();
         System.out.format("%s|%s\n", text, semanticType);
       }

Copied: ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/SemanticTypePrinter.java
(from r1690776, ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/semtype/SemanticTypePrinter.java)
URL: http://svn.apache.org/viewvc/ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/SemanticTypePrinter.java?p2=ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/SemanticTypePrinter.java&p1=ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/semtype/SemanticTypePrinter.java&r1=1690776&r2=1690779&rev=1690779&view=diff
==============================================================================
--- ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/semtype/SemanticTypePrinter.java
(original)
+++ ctakes/sandbox/ctakes-wsd/src/main/java/org/apache/ctakes/pipelines/SemanticTypePrinter.java
Mon Jul 13 17:56:34 2015
@@ -16,13 +16,12 @@
  * specific language governing permissions and limitations
  * under the License.
  */
-package org.apache.ctakes.semtype;
+package org.apache.ctakes.pipelines;
 
 import java.io.File;
 import java.util.ArrayList;
 import java.util.List;
 
-import org.apache.ctakes.pipelines.Utils;
 import org.apache.ctakes.typesystem.type.syntax.WordToken;
 import org.apache.ctakes.typesystem.type.textsem.EntityMention;
 import org.apache.ctakes.typesystem.type.textsem.EventMention;



Mime
View raw message