efxtools.sample.ae
Class UIMAWhitespaceTokenizer

java.lang.Object
  extended by org.apache.uima.analysis_component.AnalysisComponent_ImplBase
      extended by org.apache.uima.analysis_component.Annotator_ImplBase
          extended by org.apache.uima.analysis_component.JCasAnnotator_ImplBase
              extended by efxtools.filtering.FilteringAnalysisEngine
                  extended by efxtools.sample.ae.UIMAWhitespaceTokenizer
All Implemented Interfaces:
org.apache.uima.analysis_component.AnalysisComponent

public class UIMAWhitespaceTokenizer
extends FilteringAnalysisEngine

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

NOTICE: Some code changes and simplifications have been made in order to make the tokenizer fit to the filtering framework, but the actual algorithm has not been changed.


Constructor Summary
UIMAWhitespaceTokenizer()
           
 
Method Summary
 void initialize(org.apache.uima.UimaContext aContext)
           
 void split(org.apache.uima.jcas.JCas jcas, org.apache.uima.jcas.tcas.Annotation annotation)
          Splits the part of the text of the given JCas object within the given annotation into its sentences and tokens.
 
Methods inherited from class efxtools.filtering.FilteringAnalysisEngine
process, setResultSpecification
 
Methods inherited from class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
getRequiredCasInterface, process
 
Methods inherited from class org.apache.uima.analysis_component.Annotator_ImplBase
getCasInstancesRequired, hasNext, next
 
Methods inherited from class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
batchProcessComplete, collectionProcessComplete, destroy, reconfigure
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIMAWhitespaceTokenizer

public UIMAWhitespaceTokenizer()
Method Detail

initialize

public void initialize(org.apache.uima.UimaContext aContext)
                throws org.apache.uima.resource.ResourceInitializationException
Specified by:
initialize in interface org.apache.uima.analysis_component.AnalysisComponent
Overrides:
initialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBase
Throws:
org.apache.uima.resource.ResourceInitializationException

split

public void split(org.apache.uima.jcas.JCas jcas,
                  org.apache.uima.jcas.tcas.Annotation annotation)
Splits the part of the text of the given JCas object within the given annotation into its sentences and tokens.

Parameters:
jcas - The JCas object
annotation - The annotation