All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cleartk.clearnlp.TokenOps Maven / Gradle / Ivy

Go to download

Wrappers for the ClearNLP components that integrate with ClearTK's type system.

There is a newer version: 3.0.0
Show newest version
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