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

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

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

CAS.createDoubleArrayFS介绍

[英]Create a new Double array.
[中]创建一个新的双数组。

代码示例

代码示例来源:origin: org.apache.uima/uimafit-core

public static DoubleArrayFS createDoubleArray(CAS aCas, Collection<Double> aCollection) {
 return fillArrayFS(aCas.createDoubleArrayFS(aCollection.size()), aCollection);
}

代码示例来源:origin: org.apache.uima/uimafit-core

public static DoubleArrayFS createDoubleArray(CAS aCas, double[] aArray) {
 return fillArrayFS(aCas.createDoubleArrayFS(aArray.length), aArray);
}

代码示例来源:origin: org.apache.uima/uimaj-ep-cas-editor

fs = document.getCAS().createFloatArrayFS(arraySize);
} else if (type.getName().equals(CAS.TYPE_NAME_DOUBLE_ARRAY)) {
 fs = document.getCAS().createDoubleArrayFS(arraySize);
} else if (type.getName().equals(CAS.TYPE_NAME_STRING_ARRAY)) {
 fs = document.getCAS().createStringArrayFS(arraySize);

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

DoubleArrayFS arrayFs = (DoubleArrayFS) aSrcFs;
int len = arrayFs.size();
DoubleArrayFS destFS = mDestCas.createDoubleArrayFS(len);
for (int i = 0; i < len; i++) {
  destFS.set(i, arrayFs.get(i));

相关文章