efxtools.sample.ae
Class UIMAWhitespaceTokenizer
java.lang.Object
org.apache.uima.analysis_component.AnalysisComponent_ImplBase
org.apache.uima.analysis_component.Annotator_ImplBase
org.apache.uima.analysis_component.JCasAnnotator_ImplBase
efxtools.filtering.FilteringAnalysisEngine
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.
|
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 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 |
UIMAWhitespaceTokenizer
public UIMAWhitespaceTokenizer()
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 objectannotation - The annotation