cc.mallet.types.InstanceList.set()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(88)

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

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);
}

相关文章

微信公众号

最新文章

更多