本文整理了Java中org.apache.uima.jcas.tcas.Annotation.getView()
方法的一些代码示例,展示了Annotation.getView()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Annotation.getView()
方法的具体详情如下:
包路径:org.apache.uima.jcas.tcas.Annotation
类名称: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() + "]");
内容来源于网络,如有侵权,请联系作者删除!