ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From al...@apache.org
Subject svn commit: r1815760 - in /ctakes/trunk: ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/ ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ ctakes-core/src/main/java/org/apache/ctakes/core/util/ ctakes-dictionary-lookup/src/...
Date Sun, 19 Nov 2017 21:45:20 GMT
Author: alexz
Date: Sun Nov 19 21:45:20 2017
New Revision: 1815760

URL: http://svn.apache.org/viewvc?rev=1815760&view=rev
Log:
CTAKES-465: Fix deprecation for org.apache.uima.analysis_engine.annotator.AnnotatorContext

patch provided on [CTAKES-465](https://issues.apache.org/jira/browse/CTAKES-465)

Modified:
    ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/ChunkCreator.java
    ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/DefaultChunkCreator.java
    ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java
    ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/util/ParamUtil.java
    ctakes/trunk/ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/ae/LookupConsumer.java
    ctakes/trunk/ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/ae/LookupInitializer.java
    ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/impl/NegContextInitializerImpl.java
    ctakes/trunk/ctakes-lvg/src/main/java/org/apache/ctakes/lvg/ae/LvgAnnotator.java
    ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/ContextAnalyzerAdapter.java
    ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/NamedEntityContextAnalyzer.java
    ctakes/trunk/ctakes-side-effect/src/main/java/org/apache/ctakes/sideeffect/ae/SESentenceClassifierAnnotator.java
    ctakes/trunk/ctakes-side-effect/src/main/java/org/apache/ctakes/sideeffect/ae/SideEffectAnnotator.java
    ctakes/trunk/ctakes-smoking-status/src/main/java/org/apache/ctakes/smokingstatus/context/NamedEntityContextAnalyzer.java

Modified: ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/ChunkCreator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/ChunkCreator.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/ChunkCreator.java
(original)
+++ ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/ChunkCreator.java
Sun Nov 19 21:45:20 2017
@@ -34,7 +34,7 @@ import org.apache.uima.resource.Resource
  */
 public interface ChunkCreator {
 
-	public void initialize(UimaContext annotatorContext) throws ResourceInitializationException;
+	public void initialize(UimaContext uimaContext) throws ResourceInitializationException;
 
 	/**
 	 * 

Modified: ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/DefaultChunkCreator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/DefaultChunkCreator.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/DefaultChunkCreator.java
(original)
+++ ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/DefaultChunkCreator.java
Sun Nov 19 21:45:20 2017
@@ -29,11 +29,11 @@ import org.apache.ctakes.typesystem.type
  * This chunker creator simply creates annotations of type edu.mayo.bmi.chunker.type.Chunk
and
  * sets the chunkType feature of the annotation to the passed in parameter chunkType.  
  * @author Philip
- * @see org.apache.ctakes.typesystem.type.Chunk
+ * @see org.apache.ctakes.typesystem.type.syntax.Chunk
  */
 public class DefaultChunkCreator implements ChunkCreator {
 
-	public void initialize(UimaContext annotatorContext) throws ResourceInitializationException
{
+	public void initialize(UimaContext uimaContext) throws ResourceInitializationException {
 	  /* no initialization necessary */
 	}
 

Modified: ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java
(original)
+++ ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java
Sun Nov 19 21:45:20 2017
@@ -103,11 +103,10 @@ public class ChunkAdjuster extends JCasA
 	 * the configuration parameters. This method is not invoked for every
 	 * document processed.
 	 *
-	 //	 * @see org.apache.uima.analysis_engine.annotator.BaseAnnotator#initialize(AnnotatorContext)
+	 * @see org.apache.uima.fit.component.JCasAnnotator_ImplBase#initialize(UimaContext)
 	 */
 	@Override
-  public void initialize(UimaContext aContext)
-			throws ResourceInitializationException {
+  public void initialize(UimaContext aContext) throws ResourceInitializationException {
 
 		super.initialize(aContext);
 

Modified: ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/util/ParamUtil.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/util/ParamUtil.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/util/ParamUtil.java (original)
+++ ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/util/ParamUtil.java Sun
Nov 19 21:45:20 2017
@@ -31,14 +31,14 @@ public class ParamUtil {
 	/**
 	 * 
 	 * @param parameterName
-	 * @param annotatorContext
+	 * @param uimaContext
 	 * @return does not return null - but will return empty set if parameter is
 	 *         optional or not set.
 	 * @throws AnnotatorContextException
 	 */
-	public static Set<String> getStringParameterValuesSet(String parameterName, UimaContext
annotatorContext) {
+	public static Set<String> getStringParameterValuesSet(String parameterName, UimaContext
uimaContext) {
 		Set<String> returnValues = new HashSet<>();
-		String[] strings = (String[]) annotatorContext.getConfigParameterValue(parameterName);
+		String[] strings = (String[]) uimaContext.getConfigParameterValue(parameterName);
 		if (strings == null)
 			return returnValues;
 
@@ -49,8 +49,8 @@ public class ParamUtil {
 	}
 
 	public static Map<String, String> getStringParameterValuesMap(String parameterName,
-			UimaContext annotatorContext, String keyValueDelimiter) {
-		String[] paramValues = (String[]) annotatorContext.getConfigParameterValue(parameterName);
+			UimaContext uimaContext, String keyValueDelimiter) {
+		String[] paramValues = (String[]) uimaContext.getConfigParameterValue(parameterName);
 		return getStringParameterValuesMap(paramValues, keyValueDelimiter);
 	}
 	

Modified: ctakes/trunk/ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/ae/LookupConsumer.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/ae/LookupConsumer.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/ae/LookupConsumer.java
(original)
+++ ctakes/trunk/ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/ae/LookupConsumer.java
Sun Nov 19 21:45:20 2017
@@ -26,11 +26,7 @@ import org.apache.uima.jcas.JCas;
 
 /**
  * Defines how to consume the lookup hits produced by the LookupAnnotator.
- * 
- * NOTE: Constructor for implementation will be passed 2 arguments
- * 1.) AnnotatorContext for accessing external resources
- * 2.) Properties object for customization purposes.
- * 
+ *
  * @author Mayo Clinic
  */
 public interface LookupConsumer
@@ -44,6 +40,5 @@ public interface LookupConsumer
 	 *            about the annotation span plus any associated metadata.
 	 * @throws AnalysisEngineProcessException
 	 */
-	public void consumeHits(JCas jcas, Iterator<LookupHit> lookupHitItr)
-			throws AnalysisEngineProcessException;
+	public void consumeHits(JCas jcas, Iterator<LookupHit> lookupHitItr) throws AnalysisEngineProcessException;
 }

Modified: ctakes/trunk/ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/ae/LookupInitializer.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/ae/LookupInitializer.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/ae/LookupInitializer.java
(original)
+++ ctakes/trunk/ctakes-dictionary-lookup/src/main/java/org/apache/ctakes/dictionary/lookup/ae/LookupInitializer.java
Sun Nov 19 21:45:20 2017
@@ -34,10 +34,6 @@ import org.apache.uima.jcas.tcas.Annotat
 /**
  * Defines how to initialize the LookupAnnotator.
  * 
- * NOTE: Constructor for implementation will be passed 2 arguments
- * 1.) AnnotatorContext for accessing external resources
- * 2.) Properties object for customization purposes.
- * 
  * @author Mayo Clinic
  */
 public interface LookupInitializer
@@ -54,8 +50,7 @@ public interface LookupInitializer
      * @return Iterator over LookupToken objects.
      * @throws AnnotatorInitializationException
      */
-    public Iterator<LookupToken> getLookupTokenIterator(JCas jcas)
-            throws AnnotatorInitializationException;
+    public Iterator<LookupToken> getLookupTokenIterator(JCas jcas) throws AnnotatorInitializationException;
 
     /**
      * Gets an iteration of windows. A window is used to scope which LookupToken

Modified: ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/impl/NegContextInitializerImpl.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/impl/NegContextInitializerImpl.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/impl/NegContextInitializerImpl.java
(original)
+++ ctakes/trunk/ctakes-drug-ner/src/main/java/org/apache/ctakes/drugner/ae/impl/NegContextInitializerImpl.java
Sun Nov 19 21:45:20 2017
@@ -126,16 +126,16 @@ public class NegContextInitializerImpl e
 	      return indexes.getAnnotationIndex(iAnnotationType).iterator();
 	}
 
-	public void initialize(UimaContext aContext)
+	public void initialize(UimaContext uimaContext)
 	throws ResourceInitializationException 
 	{
-	  super.initialize(aContext);
+	  super.initialize(uimaContext);
 	  try
 	  {
-	    Object val = aContext.getConfigParameterValue(PARAM_ANNOTATION_TYPE);
+	    Object val = uimaContext.getConfigParameterValue(PARAM_ANNOTATION_TYPE);
 	    iAnnotationType = JCasUtil.getType((String)val);
 	    
-	    String statusIndicatorFSMClass = (String) aContext.getConfigParameterValue(NEGATION_IND_FSM_CLASS);
+	    String statusIndicatorFSMClass = (String) uimaContext.getConfigParameterValue(NEGATION_IND_FSM_CLASS);
 	    iv_negIndicatorFSM = (FSM) Class.forName(statusIndicatorFSMClass).newInstance();
 	  }
 	  catch (Exception ace)

Modified: ctakes/trunk/ctakes-lvg/src/main/java/org/apache/ctakes/lvg/ae/LvgAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-lvg/src/main/java/org/apache/ctakes/lvg/ae/LvgAnnotator.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-lvg/src/main/java/org/apache/ctakes/lvg/ae/LvgAnnotator.java (original)
+++ ctakes/trunk/ctakes-lvg/src/main/java/org/apache/ctakes/lvg/ae/LvgAnnotator.java Sun Nov
19 21:45:20 2017
@@ -224,15 +224,13 @@ public class LvgAnnotator extends JCasAn
 	 * Performs initialization logic. This implementation just reads values for
 	 * the configuration parameters.
 	 * 
-	 * @see org.apache.uima.analysis_engine.annotator.BaseAnnotator#initialize(AnnotatorContext)
+	 * @see JCasAnnotator_ImplBase#initialize(UimaContext)
 	 */
 	@Override
-  public void initialize(UimaContext aContext)
-			throws ResourceInitializationException {
+  public void initialize(UimaContext aContext) throws ResourceInitializationException {
 		super.initialize(aContext);
 
 		configInit();
-
 		try {
 			lvgCmd = lvgResource.getLvg();
 
@@ -250,7 +248,6 @@ public class LvgAnnotator extends JCasAn
 					logger.info("Loaded " + lemmaCacheMap.size() + " entries");
 				}
 			}
-
 		} catch (IOException e) {
 			throw new ResourceInitializationException(e);
 		}

Modified: ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/ContextAnalyzerAdapter.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/ContextAnalyzerAdapter.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/ContextAnalyzerAdapter.java
(original)
+++ ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/ContextAnalyzerAdapter.java
Sun Nov 19 21:45:20 2017
@@ -31,7 +31,8 @@ public class ContextAnalyzerAdapter impl
 		return null;
 	}
 
-	public void initialize(UimaContext annotatorContext) throws ResourceInitializationException
{
+	public void initialize(UimaContext uimaContext) throws ResourceInitializationException {
+		// Default implementation
 	}
 
 	public boolean isBoundary(Annotation tokenAnnot, int scope) throws AnalysisEngineProcessException{

Modified: ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/NamedEntityContextAnalyzer.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/NamedEntityContextAnalyzer.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/NamedEntityContextAnalyzer.java
(original)
+++ ctakes/trunk/ctakes-ne-contexts/src/main/java/org/apache/ctakes/necontexts/NamedEntityContextAnalyzer.java
Sun Nov 19 21:45:20 2017
@@ -40,7 +40,7 @@ import org.apache.uima.resource.Resource
  */
 public abstract class NamedEntityContextAnalyzer implements ContextAnalyzer {
 
-	private Logger iv_logger = Logger.getLogger(getClass().getName());
+	private static final Logger logger = Logger.getLogger(NamedEntityContextAnalyzer.class);
 
 	private Set<String> _boundaryWordSet;
 
@@ -49,7 +49,7 @@ public abstract class NamedEntityContext
 	}
 
 	private void initBoundaryData() {
-		iv_logger.info("initBoundaryData() called for ContextInitializer");
+		logger.info("initBoundaryData() called for ContextInitializer");
 		_boundaryWordSet = new HashSet<String>();
 		_boundaryWordSet.add("but");
 		_boundaryWordSet.add("however");

Modified: ctakes/trunk/ctakes-side-effect/src/main/java/org/apache/ctakes/sideeffect/ae/SESentenceClassifierAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-side-effect/src/main/java/org/apache/ctakes/sideeffect/ae/SESentenceClassifierAnnotator.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-side-effect/src/main/java/org/apache/ctakes/sideeffect/ae/SESentenceClassifierAnnotator.java
(original)
+++ ctakes/trunk/ctakes-side-effect/src/main/java/org/apache/ctakes/sideeffect/ae/SESentenceClassifierAnnotator.java
Sun Nov 19 21:45:20 2017
@@ -28,18 +28,16 @@ import libsvm.svm;
 import libsvm.svm_model;
 import libsvm.svm_node;
 
-import org.apache.uima.analysis_engine.ResultSpecification;
-import org.apache.uima.analysis_engine.annotator.AnnotatorConfigurationException;
-import org.apache.uima.analysis_engine.annotator.AnnotatorContext;
-import org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException;
-import org.apache.uima.analysis_engine.annotator.AnnotatorProcessException;
-import org.apache.uima.analysis_engine.annotator.JTextAnnotator_ImplBase;
+import org.apache.uima.UimaContext;
+import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
+import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
 import org.apache.uima.jcas.JFSIndexRepository;
 import org.apache.uima.jcas.JCas;
 
 import org.apache.ctakes.sideeffect.type.PSESentenceFeature;
 import org.apache.ctakes.sideeffect.type.SESentence;
 import org.apache.ctakes.sideeffect.type.SideEffectAnnotation;
+import org.apache.uima.resource.ResourceInitializationException;
 
 /**
  * Classify side effect sentences and add them to SESentence
@@ -47,14 +45,15 @@ import org.apache.ctakes.sideeffect.type
  *
  */
 
-public class SESentenceClassifierAnnotator extends JTextAnnotator_ImplBase {
-	svm_model model; //trained libsvm model
-	Map<String, String> feaMap; //key:nominal values, values: converted value
-		
-	public void initialize(AnnotatorContext annotCtx)
-	throws AnnotatorInitializationException, AnnotatorConfigurationException
+public class SESentenceClassifierAnnotator extends JCasAnnotator_ImplBase {
+
+	private svm_model model; //trained libsvm model
+	private Map<String, String> feaMap; //key:nominal values, values: converted value
+
+	@Override
+	public void initialize(UimaContext uimaContext) throws ResourceInitializationException
 	{ 
-		super.initialize(annotCtx);
+		super.initialize(uimaContext);
 		  		
 		try {
 			String pathOfTrainedModel = (String) getContext().getConfigParameterValue("PathOfModel");
@@ -77,10 +76,10 @@ public class SESentenceClassifierAnnotat
 		feaMap.put("afp", "6"); // location feature
 		feaMap.put("any", "7"); // location feature
 	}
-	
-	public void process(JCas jcas, ResultSpecification resSpec)
-			throws AnnotatorProcessException {
-		JFSIndexRepository indexes = jcas.getJFSIndexRepository();
+
+	@Override
+	public void process(JCas aJCas) throws AnalysisEngineProcessException {
+		JFSIndexRepository indexes = aJCas.getJFSIndexRepository();
 		Iterator psfIter = indexes.getAnnotationIndex(PSESentenceFeature.type).iterator();	
 		Set<String> seSenSpans_ML = new HashSet<String>();
 		
@@ -128,11 +127,10 @@ public class SESentenceClassifierAnnotat
 	    	String[] stk = s.split("\\|");
 	    	int begin = Integer.parseInt(stk[0]);
 	    	int end = Integer.parseInt(stk[1]);
-			SESentence ses = new SESentence(jcas);
+			SESentence ses = new SESentence(aJCas);
 			ses.setBegin(begin);
 			ses.setEnd(end);
 			ses.addToIndexes();
 	    }
 	}
-			
 }

Modified: ctakes/trunk/ctakes-side-effect/src/main/java/org/apache/ctakes/sideeffect/ae/SideEffectAnnotator.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-side-effect/src/main/java/org/apache/ctakes/sideeffect/ae/SideEffectAnnotator.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-side-effect/src/main/java/org/apache/ctakes/sideeffect/ae/SideEffectAnnotator.java
(original)
+++ ctakes/trunk/ctakes-side-effect/src/main/java/org/apache/ctakes/sideeffect/ae/SideEffectAnnotator.java
Sun Nov 19 21:45:20 2017
@@ -32,18 +32,10 @@ import java.util.Set;
 import org.apache.uima.UimaContext;
 import org.apache.uima.analysis_component.JCasAnnotator_ImplBase;
 import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
-import org.apache.uima.analysis_engine.ResultSpecification;
-import org.apache.uima.analysis_engine.annotator.AnnotatorConfigurationException;
-import org.apache.uima.analysis_engine.annotator.AnnotatorContext;
-import org.apache.uima.analysis_engine.annotator.AnnotatorContextException;
-import org.apache.uima.analysis_engine.annotator.AnnotatorInitializationException;
-import org.apache.uima.analysis_engine.annotator.AnnotatorProcessException;
-import org.apache.uima.analysis_engine.annotator.JTextAnnotator_ImplBase;
 import org.apache.uima.jcas.JCas;
 import org.apache.uima.jcas.JFSIndexRepository;
 import org.apache.uima.resource.ResourceInitializationException;
 
-
 import org.apache.ctakes.core.resource.FileResource;
 import org.apache.ctakes.core.util.DocumentIDAnnotationUtil;
 import org.apache.ctakes.core.util.FSUtil;

Modified: ctakes/trunk/ctakes-smoking-status/src/main/java/org/apache/ctakes/smokingstatus/context/NamedEntityContextAnalyzer.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-smoking-status/src/main/java/org/apache/ctakes/smokingstatus/context/NamedEntityContextAnalyzer.java?rev=1815760&r1=1815759&r2=1815760&view=diff
==============================================================================
--- ctakes/trunk/ctakes-smoking-status/src/main/java/org/apache/ctakes/smokingstatus/context/NamedEntityContextAnalyzer.java
(original)
+++ ctakes/trunk/ctakes-smoking-status/src/main/java/org/apache/ctakes/smokingstatus/context/NamedEntityContextAnalyzer.java
Sun Nov 19 21:45:20 2017
@@ -45,7 +45,7 @@ public abstract class NamedEntityContext
 
 	private Set<String> _boundaryWordSet;
 
-	public void initialize(UimaContext annotatorContext) throws ResourceInitializationException
{
+	public void initialize(UimaContext uimaContext) throws ResourceInitializationException {
 		initBoundaryData();
 	}
 



Mime
View raw message