ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chen...@apache.org
Subject svn commit: r1696841 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Date Thu, 20 Aug 2015 18:58:30 GMT
Author: chenpei
Date: Thu Aug 20 18:58:30 2015
New Revision: 1696841

URL: http://svn.apache.org/r1696841
Log:
CTAKES-364 - Allow Dictionary lookup fast to read in resources from InputStream instead of
File (allow reading within a jar).  
Annotator just needs in a String for the path now rather than FileResource

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java?rev=1696841&r1=1696840&r2=1696841&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/eval/Evaluation_ImplBase.java
Thu Aug 20 18:58:30 2015
@@ -525,16 +525,11 @@ org.cleartk.eval.Evaluation_ImplBase<Int
 				"DeleteAction",
 				new String[] { "selector=B" }));
 		// add UMLS on top of lookup windows
-		try {
 			aggregateBuilder.add(AnalysisEngineFactory.createEngineDescription(DefaultJCasTermAnnotator.class,
 					AbstractJCasTermAnnotator.PARAM_WINDOW_ANNOT_PRP,
 					"org.apache.ctakes.typesystem.type.textspan.Sentence",
 					 JCasTermAnnotator.DICTIONARY_DESCRIPTOR_KEY, "org/apache/ctakes/dictionary/lookup/fast/cTakesHsql.xml")
 					);
-		} catch (FileNotFoundException e) {
-			e.printStackTrace();
-			throw new ResourceInitializationException(e);
-		}
 
 		aggregateBuilder.add(LvgAnnotator.createAnnotatorDescription());
 



Mime
View raw message