You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ctakes.apache.org by tm...@apache.org on 2012/11/28 15:07:43 UTC
svn commit: r1414698 - in
/incubator/ctakes/sandbox/ctakes-spelling-corrector: .classpath .project
pom.xml
src/org/apache/ctakes/spelling/priors/unigram/UnigramPriorGenerator.java
src/org/apache/ctakes/spelling/test/TestOnCorpus.java
Author: tmill
Date: Wed Nov 28 14:07:40 2012
New Revision: 1414698
URL: http://svn.apache.org/viewvc?rev=1414698&view=rev
Log:
Jira issue: ctakes-58. Maven-ified the project. Switched the imports to new typesystem.
Added:
incubator/ctakes/sandbox/ctakes-spelling-corrector/pom.xml
Modified:
incubator/ctakes/sandbox/ctakes-spelling-corrector/.classpath
incubator/ctakes/sandbox/ctakes-spelling-corrector/.project
incubator/ctakes/sandbox/ctakes-spelling-corrector/src/org/apache/ctakes/spelling/priors/unigram/UnigramPriorGenerator.java
incubator/ctakes/sandbox/ctakes-spelling-corrector/src/org/apache/ctakes/spelling/test/TestOnCorpus.java
Modified: incubator/ctakes/sandbox/ctakes-spelling-corrector/.classpath
URL: http://svn.apache.org/viewvc/incubator/ctakes/sandbox/ctakes-spelling-corrector/.classpath?rev=1414698&r1=1414697&r2=1414698&view=diff
==============================================================================
--- incubator/ctakes/sandbox/ctakes-spelling-corrector/.classpath (original)
+++ incubator/ctakes/sandbox/ctakes-spelling-corrector/.classpath Wed Nov 28 14:07:40 2012
@@ -1,11 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry combineaccessrules="false" kind="src" path="/clinical documents pipeline"/>
- <classpathentry combineaccessrules="false" kind="src" path="/core"/>
- <classpathentry combineaccessrules="false" kind="src" path="/common-type-system"/>
- <classpathentry kind="lib" path="lib/uimafit-1.2.0.jar"/>
+ <classpathentry kind="src" output="target/classes" path="src">
+ <attributes>
+ <attribute name="optional" value="true"/>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/UIMA"/>
- <classpathentry kind="output" path="bin"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+ <attributes>
+ <attribute name="maven.pomderived" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="target/classes"/>
</classpath>
Modified: incubator/ctakes/sandbox/ctakes-spelling-corrector/.project
URL: http://svn.apache.org/viewvc/incubator/ctakes/sandbox/ctakes-spelling-corrector/.project?rev=1414698&r1=1414697&r2=1414698&view=diff
==============================================================================
--- incubator/ctakes/sandbox/ctakes-spelling-corrector/.project (original)
+++ incubator/ctakes/sandbox/ctakes-spelling-corrector/.project Wed Nov 28 14:07:40 2012
@@ -10,8 +10,14 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
Added: incubator/ctakes/sandbox/ctakes-spelling-corrector/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ctakes/sandbox/ctakes-spelling-corrector/pom.xml?rev=1414698&view=auto
==============================================================================
--- incubator/ctakes/sandbox/ctakes-spelling-corrector/pom.xml (added)
+++ incubator/ctakes/sandbox/ctakes-spelling-corrector/pom.xml Wed Nov 28 14:07:40 2012
@@ -0,0 +1,42 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>ctakes-spelling-corrector</groupId>
+ <artifactId>ctakes-spelling-corrector</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <build>
+ <sourceDirectory>src</sourceDirectory>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.3.2</version>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <parent>
+ <groupId>org.apache.ctakes</groupId>
+ <artifactId>ctakes</artifactId>
+ <version>3.1.0-incubating-SNAPSHOT</version>
+ </parent>
+ <dependencies>
+ <dependency>
+ <groupId>org.uimafit</groupId>
+ <artifactId>uimafit</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ctakes</groupId>
+ <artifactId>ctakes-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ctakes</groupId>
+ <artifactId>ctakes-type-system</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.ctakes</groupId>
+ <artifactId>ctakes-clinical-pipeline</artifactId>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Modified: incubator/ctakes/sandbox/ctakes-spelling-corrector/src/org/apache/ctakes/spelling/priors/unigram/UnigramPriorGenerator.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/sandbox/ctakes-spelling-corrector/src/org/apache/ctakes/spelling/priors/unigram/UnigramPriorGenerator.java?rev=1414698&r1=1414697&r2=1414698&view=diff
==============================================================================
--- incubator/ctakes/sandbox/ctakes-spelling-corrector/src/org/apache/ctakes/spelling/priors/unigram/UnigramPriorGenerator.java (original)
+++ incubator/ctakes/sandbox/ctakes-spelling-corrector/src/org/apache/ctakes/spelling/priors/unigram/UnigramPriorGenerator.java Wed Nov 28 14:07:40 2012
@@ -9,6 +9,8 @@ import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
+import org.apache.ctakes.typesystem.type.syntax.BaseToken;
+import org.apache.ctakes.typesystem.type.syntax.WordToken;
import org.apache.uima.UIMAException;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.cas.FSIterator;
@@ -19,9 +21,6 @@ import org.uimafit.factory.JCasFactory;
import org.uimafit.factory.TypeSystemDescriptionFactory;
import org.uimafit.pipeline.SimplePipeline;
-import edu.mayo.bmi.uima.core.type.syntax.BaseToken;
-import edu.mayo.bmi.uima.core.type.syntax.WordToken;
-
public class UnigramPriorGenerator {
static HashMap<String,Integer> wordCounts = new HashMap<String,Integer>();
static long numWords = 0;
Modified: incubator/ctakes/sandbox/ctakes-spelling-corrector/src/org/apache/ctakes/spelling/test/TestOnCorpus.java
URL: http://svn.apache.org/viewvc/incubator/ctakes/sandbox/ctakes-spelling-corrector/src/org/apache/ctakes/spelling/test/TestOnCorpus.java?rev=1414698&r1=1414697&r2=1414698&view=diff
==============================================================================
--- incubator/ctakes/sandbox/ctakes-spelling-corrector/src/org/apache/ctakes/spelling/test/TestOnCorpus.java (original)
+++ incubator/ctakes/sandbox/ctakes-spelling-corrector/src/org/apache/ctakes/spelling/test/TestOnCorpus.java Wed Nov 28 14:07:40 2012
@@ -9,6 +9,8 @@ import java.util.Scanner;
import org.apache.ctakes.spelling.SpellingCorrector;
import org.apache.ctakes.spelling.mistakes.edit.SimpleEditDistanceModel;
import org.apache.ctakes.spelling.priors.unigram.SimpleUnigramPrior;
+import org.apache.ctakes.typesystem.type.syntax.BaseToken;
+import org.apache.ctakes.typesystem.type.syntax.WordToken;
import org.apache.uima.UIMAException;
import org.apache.uima.analysis_engine.AnalysisEngine;
import org.apache.uima.cas.FSIterator;
@@ -19,9 +21,6 @@ import org.uimafit.factory.JCasFactory;
import org.uimafit.factory.TypeSystemDescriptionFactory;
import org.uimafit.pipeline.SimplePipeline;
-import edu.mayo.bmi.uima.core.type.syntax.BaseToken;
-import edu.mayo.bmi.uima.core.type.syntax.WordToken;
-
public class TestOnCorpus {
/**