本文整理了Java中org.apache.uima.cas.FSIndex.getType()
方法的一些代码示例,展示了FSIndex.getType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FSIndex.getType()
方法的具体详情如下:
包路径:org.apache.uima.cas.FSIndex
类名称:FSIndex
方法名:getType
[英]Return the type of feature structures this index contains.
[中]返回此索引包含的要素结构的类型。
代码示例来源:origin: apache/uima-uimaj
public Object getType() {
return fsIndex.getType();
}
代码示例来源:origin: apache/uima-uimaj
@Override
public Type getType() {
return this.index.getType();
}
代码示例来源:origin: apache/uima-uimaj
/**
* Return a label identifying the content of the helper.
*
* @return the label string.
*/
public String toString() {
return indexName + "[" + fsIndex.getType().getName() + ", " + fsIndex.size() + " entries]";
}
}
代码示例来源:origin: apache/uima-uimaj
public Object getSubTypes() {
FSIndexRepository ir = cas.getIndexRepository();
Type type = fsIndex.getType();
List<Type> subtypes = cas.getTypeSystem().getProperlySubsumedTypes(type);
DebugNameValuePair[] r = new DebugNameValuePair[subtypes.size()];
int i = 0;
Iterator<Type> it = subtypes.iterator();
while (it.hasNext()) {
Type stype = it.next();
r[i++] = new DebugNameValuePair("Type: " + stype.getName(),
new UnexpandedFeatureStructures(ir.getIndex(indexName, stype)));
}
return r;
}
代码示例来源:origin: org.apache.uima/uimaj-tools
String label = it.next();
FSIndex index1 = ir.getIndex(label);
IndexTreeNode nodeObj = new IndexTreeNode(label, index1.getType(), index1.size());
DefaultMutableTreeNode node = new DefaultMutableTreeNode(nodeObj);
root.add(node);
node.add(createTypeTree(index1.getType(), this.cas.getTypeSystem(), label, ir));
代码示例来源:origin: org.apache.uima/uimaj-tools
@Override
public void actionPerformed(ActionEvent event) {
String title = this.main.getIndexLabel() + " - " + this.main.getIndex().getType().getName();
MultiAnnotViewerFrame f = new MultiAnnotViewerFrame(title);
f.addWindowListener(new CloseAnnotationViewHandler(this.main));
FSIterator it = this.main.getIndex().iterator();
final String text = this.main.getCas().getDocumentText();
System.out.println("Creating extents.");
AnnotationExtent[] extents = MultiMarkup.createAnnotationMarkups(it, text.length(), this.main
.getStyleMap());
System.out.println("Initializing text frame.");
f.init(text, extents, this.main.getDimension(MainFrame.annotViewSizePref));
System.out.println("Done.");
}
代码示例来源:origin: org.apache.uima/uimaj-tools
final int size = index.size();
this.rootString = "<html><font color=green>" + indexName + "</font> - <font color=blue>"
+ index.getType().getName() + "</font> [" + size + "]</html>";
this.root = new FSNode(this, FSNode.DISPLAY_NODE, null, 0, null);
this.fss = new ArrayList<FSNode>();
内容来源于网络,如有侵权,请联系作者删除!