@Beta public abstract class InputTypesHelper<TOKEN_TYPE extends Annotation,SENTENCE_TYPE extends Annotation> extends Object
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.
| Constructor and Description |
|---|
InputTypesHelper() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getPosTag(TOKEN_TYPE token) |
abstract List<SENTENCE_TYPE> |
getSentences(JCas jCas) |
abstract List<TOKEN_TYPE> |
getTokens(JCas jCas,
SENTENCE_TYPE sentence) |
abstract void |
setPosTag(TOKEN_TYPE token,
String tag) |
public InputTypesHelper()
public abstract String getPosTag(TOKEN_TYPE token)
public abstract List<SENTENCE_TYPE> getSentences(JCas jCas)
public abstract List<TOKEN_TYPE> getTokens(JCas jCas, SENTENCE_TYPE sentence)
public abstract void setPosTag(TOKEN_TYPE token, String tag)
Copyright © 2014. All rights reserved.