本文整理了Java中cc.mallet.types.InstanceList.set()
方法的一些代码示例,展示了InstanceList.set()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。InstanceList.set()
方法的具体详情如下:
包路径:cc.mallet.types.InstanceList
类名称:InstanceList
方法名:set
[英]Replaces the Instance
at position index
with a new one.
[中]将位置index
处的Instance
替换为新的。
代码示例来源:origin: com.github.steveash.mallet/mallet
/** Replaces the <code>Instance</code> at position
* <code>index</code> with a new one. Note that this is the only
* sanctioned way of changing an Instance. */
public Instance set (int index, Instance instance) {
InstanceList page = getPageForIndex (index, true);
return page.set (index % this.instancesPerPage, instance);
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
/** Replaces the <code>Instance</code> at position
* <code>index</code> with a new one. Note that this is the only
* sanctioned way of changing an Instance. */
public Instance set (int index, Instance instance) {
InstanceList page = getPageForIndex (index, true);
return page.set (index % this.instancesPerPage, instance);
}
代码示例来源:origin: cc.mallet/mallet
/** Replaces the <code>Instance</code> at position
* <code>index</code> with a new one. Note that this is the only
* sanctioned way of changing an Instance. */
public Instance set (int index, Instance instance) {
InstanceList page = getPageForIndex (index, true);
return page.set (index % this.instancesPerPage, instance);
}
代码示例来源:origin: cc.mallet/mallet
public Instance set (int index, Instance instance) {
int i = getOffsetIndex (index);
return this.lists[i].set (index - this.offsets[i], instance);
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
public Instance set (int index, Instance instance) {
int i = getOffsetIndex (index);
return this.lists[i].set (index - this.offsets[i], instance);
}
代码示例来源:origin: com.github.steveash.mallet/mallet
public Instance set (int index, Instance instance) {
int i = getOffsetIndex (index);
return this.lists[i].set (index - this.offsets[i], instance);
}
代码示例来源:origin: cc.mallet/mallet
/** Replaces the <code>Instance</code> at position <code>index</code>
* with a new one. */
public void setInstance (int index, Instance instance)
{
assert (this.getDataAlphabet().equals(instance.getDataAlphabet()));
assert (this.getTargetAlphabet().equals(instance.getTargetAlphabet()));
this.set(index, instance);
}
代码示例来源:origin: de.julielab/jcore-mallet-2.0.9
/** Replaces the <code>Instance</code> at position <code>index</code>
* with a new one. */
public void setInstance (int index, Instance instance)
{
assert (this.getDataAlphabet().equals(instance.getDataAlphabet()));
assert (this.getTargetAlphabet().equals(instance.getTargetAlphabet()));
this.set(index, instance);
}
代码示例来源:origin: com.github.steveash.mallet/mallet
/** Replaces the <code>Instance</code> at position <code>index</code>
* with a new one. */
public void setInstance (int index, Instance instance)
{
assert (this.getDataAlphabet().equals(instance.getDataAlphabet()));
assert (this.getTargetAlphabet().equals(instance.getTargetAlphabet()));
this.set(index, instance);
}
内容来源于网络,如有侵权,请联系作者删除!