org.apache.uima.jcas.tcas.Annotation.getView()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(81)

本文整理了Java中org.apache.uima.jcas.tcas.Annotation.getView()方法的一些代码示例,展示了Annotation.getView()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotation.getView()方法的具体详情如下:
包路径:org.apache.uima.jcas.tcas.Annotation
类名称:Annotation
方法名:getView

Annotation.getView介绍

暂无

代码示例

代码示例来源:origin: apache/uima-uimaj

/**
 * @see org.apache.uima.cas.text.AnnotationFS#getCoveredText()
 */
public String getCoveredText() {
 final CAS casView = this.getView();
 final String text = casView.getDocumentText();
 if (text == null) {
  return null;
 }
 return text.substring(getBegin(), getEnd());
}

代码示例来源:origin: oaqa/baseqa

public static String annotationOffset(Annotation annotation) {
 return annotation.getView().getViewName() + ":" + annotation.getBegin() + ":" +
     annotation.getEnd();
}

代码示例来源:origin: apache/ctakes

System.out.print("Mention: " + mention.getCoveredText().replace("\n", "<CR>"));
System.out.print(" (" + mention.getBegin() + ", " + mention.getEnd() + ")");
if(!mention.getView().getViewName().equals(myView)){
 System.out.print("[DOC:" + mention.getView().getViewName() + "]");

代码示例来源:origin: apache/ctakes

System.out.print("Mention: " + mention.getCoveredText().replace("\n", "<CR>"));
System.out.print(" (" + mention.getBegin() + ", " + mention.getEnd() + ")");
if(!isGold && !mention.getView().getViewName().equals(myView)){
 System.out.print("[DOC:" + mention.getView().getViewName() + "]");

相关文章