本文整理汇总了Java中edu.umass.cs.mallet.base.pipe.Pipe.pipe方法的典型用法代码示例。如果您正苦于以下问题:Java Pipe.pipe方法的具体用法?Java Pipe.pipe怎么用?Java Pipe.pipe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类edu.umass.cs.mallet.base.pipe.Pipe
的用法示例。
在下文中一共展示了Pipe.pipe方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: pipe
import edu.umass.cs.mallet.base.pipe.Pipe; //导入方法依赖的package包/类
public Instance pipe(Instance carrier, int startingIndex)
{
// System.err.println(pipes.size());
for (int i = startingIndex; i < pipes.size(); i++)
{
// System.err.println("Pipe: " + i);
Pipe p = (Pipe) pipes.get(i);
if (p == null)
{
System.err.println("Pipe is null");
} else
{
carrier = p.pipe(carrier);
}
}
return carrier;
}
示例2: Instance
import edu.umass.cs.mallet.base.pipe.Pipe; //导入方法依赖的package包/类
/** Initialize the slots with the given four values, then put the
Instance through the given pipe, then lock the instance. */
public Instance (Object data, Object target, Object name, Object source,
Pipe p)
{
this (data, target, name, source);
if (p != null) {
p.pipe (this);
locked = true;
}
pipe = p;
}
示例3: getPipedCopy
import edu.umass.cs.mallet.base.pipe.Pipe; //导入方法依赖的package包/类
public Instance getPipedCopy (Pipe p) {
if (pipe != null)
throw new IllegalStateException
("This method can only be called on Instances that have not yet already been piped");
Instance ret = p.pipe (this.shallowCopy());
ret.pipe = p;
return ret;
}