org.apache.uima.cas.CAS.setSofaDataURI()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(110)

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

CAS.setSofaDataURI介绍

[英]Set the Sofa data as a URI. Once set, Sofa data is immutable, and cannot be set again until the CAS has been reset.
[中]将Sofa数据设置为URI。一旦设置,Sofa数据是不可变的,并且在重置CAS之前无法再次设置。

代码示例

代码示例来源:origin: org.cleartk/cleartk-util

/**
 * Set the primary Uniform Resource Identifier for this CAS and all its views. This creates the
 * view {@link #URI} and assigns the URI there.
 * 
 * @param cas
 *          The CAS object.
 * @param uri
 *          The primary URI for the CAS and all its views.
 */
public static void setURI(CAS cas, java.net.URI uri) {
 CAS view = cas.createView(URI);
 view.setSofaDataURI(uri.toString(), null);
}

代码示例来源:origin: ClearTK/cleartk

/**
 * Set the primary Uniform Resource Identifier for this CAS and all its views. This creates the
 * view {@link #URI} and assigns the URI there.
 * 
 * @param cas
 *          The CAS object.
 * @param uri
 *          The primary URI for the CAS and all its views.
 */
public static void setURI(CAS cas, java.net.URI uri) {
 CAS view = cas.createView(URI);
 view.setSofaDataURI(uri.toString(), null);
}

代码示例来源:origin: de.tudarmstadt.ukp.dkpro.core/de.tudarmstadt.ukp.dkpro.core.stanfordnlp-gpl

targetView.setSofaDataURI(aSrcCasView.getSofaDataURI(), sofaMime);

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

aTgtCasView.setSofaDataString(srcCasViewImpl.getDocumentText(), sofaMime);
} else if (srcCasViewImpl.getSofaDataURI() != null) {
 aTgtCasView.setSofaDataURI(srcCasViewImpl.getSofaDataURI(), sofaMime);
} else if (srcCasViewImpl.getSofaDataArray() != null) {
 aTgtCasView.setSofaDataArray(copyFs2Fs(srcCasViewImpl.getSofaDataArray()), sofaMime);

相关文章