org.cleartk.clearnlp.TokenOps Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleartk-clearnlp Show documentation
Show all versions of cleartk-clearnlp Show documentation
Wrappers for the ClearNLP components that integrate with ClearTK's type system.
package org.cleartk.clearnlp;
import java.util.List;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.tcas.Annotation;
import com.google.common.annotations.Beta;
/**
* Defines common set of token data type operations used to convert to and query from
* the target type system
*
* @author Lee Becker
*
*/
@Beta
public interface TokenOps {
TOKEN_TYPE createToken(JCas jCas, int begin, int end);
List selectTokens(JCas jCas, Annotation coveringAnnotation);
String getPos(JCas jCas, TOKEN_TYPE token);
void setPos(JCas jCas, TOKEN_TYPE token, String posTag);
String getLemma(JCas jCas, TOKEN_TYPE token);
void setLemma(JCas jCas, TOKEN_TYPE token, String lemma);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy