ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1707378 - /ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/TreeUtils.java
Date Wed, 07 Oct 2015 20:15:36 GMT
Author: tmill
Date: Wed Oct  7 20:15:36 2015
New Revision: 1707378

URL: http://svn.apache.org/viewvc?rev=1707378&view=rev
Log:
Simple function for escaping punctuation tokens.

Modified:
    ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/TreeUtils.java

Modified: ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/TreeUtils.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/TreeUtils.java?rev=1707378&r1=1707377&r2=1707378&view=diff
==============================================================================
--- ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/TreeUtils.java
(original)
+++ ctakes/trunk/ctakes-constituency-parser/src/main/java/org/apache/ctakes/constituency/parser/util/TreeUtils.java
Wed Oct  7 20:15:36 2015
@@ -412,7 +412,12 @@ final public class TreeUtils {
       return sentenceParse;
    }
 
-
+   public static String escapePunct(String in){
+     if(BRACKET_MAP.containsKey(in)){
+       return BRACKET_MAP.get(in);
+     }
+     return in;
+   }
 
 }
 



Mime
View raw message