org.cleartk.syntax.opennlp.parser
Class InputTypesHelper<TOKEN_TYPE extends org.apache.uima.jcas.tcas.Annotation,SENTENCE_TYPE extends org.apache.uima.jcas.tcas.Annotation>

java.lang.Object
  extended by org.cleartk.syntax.opennlp.parser.InputTypesHelper<TOKEN_TYPE,SENTENCE_TYPE>
Direct Known Subclasses:
DefaultInputTypesHelper

public abstract class InputTypesHelper<TOKEN_TYPE extends org.apache.uima.jcas.tcas.Annotation,SENTENCE_TYPE extends org.apache.uima.jcas.tcas.Annotation>
extends Object


Copyright (c) 2012, Regents of the University of Colorado
All rights reserved.

InputTypesHelper allows constituent wrappers to abstract away the input token and sentence types that it expects. The default implementation uses the ClearTK token and sentence types, but by extending this class you could specify your own input types from your type system.

Author:
Philip Ogren

Constructor Summary
InputTypesHelper()
           
 
Method Summary
abstract  String getPosTag(TOKEN_TYPE token)
           
abstract  List<SENTENCE_TYPE> getSentences(org.apache.uima.jcas.JCas jCas)
           
abstract  List<TOKEN_TYPE> getTokens(org.apache.uima.jcas.JCas jCas, SENTENCE_TYPE sentence)
           
abstract  void setPosTag(TOKEN_TYPE token, String tag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputTypesHelper

public InputTypesHelper()
Method Detail

getTokens

public abstract List<TOKEN_TYPE> getTokens(org.apache.uima.jcas.JCas jCas,
                                           SENTENCE_TYPE sentence)

getSentences

public abstract List<SENTENCE_TYPE> getSentences(org.apache.uima.jcas.JCas jCas)

getPosTag

public abstract String getPosTag(TOKEN_TYPE token)

setPosTag

public abstract void setPosTag(TOKEN_TYPE token,
                               String tag)


Copyright © 2013. All Rights Reserved.