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