本文整理了Java中cc.mallet.types.InstanceList.clone()
方法的一些代码示例,展示了InstanceList.clone()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InstanceList.clone()
方法的具体详情如下:
包路径:cc.mallet.types.InstanceList
类名称:InstanceList
方法名:clone
暂无
代码示例来源:origin: com.github.steveash.mallet/mallet
public Object clone () {
InstanceList[] newLists = new InstanceList[this.lists.length];
for (int i = 0; i < this.lists.length; i++) {
newLists[i] = (InstanceList) this.lists[i].clone ();
}
return new MultiInstanceList (newLists);
}
代码示例来源:origin: cc.mallet/mallet
public Object clone () {
InstanceList[] newLists = new InstanceList[this.lists.length];
for (int i = 0; i < this.lists.length; i++) {
newLists[i] = (InstanceList) this.lists[i].clone ();
}
return new MultiInstanceList (newLists);
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
public Object clone () {
InstanceList[] newLists = new InstanceList[this.lists.length];
for (int i = 0; i < this.lists.length; i++) {
newLists[i] = (InstanceList) this.lists[i].clone ();
}
return new MultiInstanceList (newLists);
}
代码示例来源:origin: cc.mallet/mallet
public InstanceList subList (double proportion)
{
if (proportion > 1.0)
throw new IllegalArgumentException ("proportion must by <= 1.0");
InstanceList other = (InstanceList) clone();
other.shuffle(new java.util.Random());
proportion *= other.size();
for (int i = 0; i < proportion; i++)
other.add (get(i));
return other;
}
代码示例来源:origin: com.github.steveash.mallet/mallet
public InstanceList subList (double proportion)
{
if (proportion > 1.0)
throw new IllegalArgumentException ("proportion must by <= 1.0");
InstanceList other = (InstanceList) clone();
other.shuffle(new java.util.Random());
proportion *= other.size();
for (int i = 0; i < proportion; i++)
other.add (get(i));
return other;
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
public InstanceList subList (double proportion)
{
if (proportion > 1.0)
throw new IllegalArgumentException ("proportion must by <= 1.0");
InstanceList other = (InstanceList) clone();
other.shuffle(new java.util.Random());
proportion *= other.size();
for (int i = 0; i < proportion; i++)
other.add (get(i));
return other;
}
内容来源于网络,如有侵权,请联系作者删除!