edu.umass.cs.mallet.projects.seg_plus_coref.coreference
Class NodePairIterator
java.lang.Object
edu.umass.cs.mallet.base.pipe.iterator.AbstractPipeInputIterator
edu.umass.cs.mallet.projects.seg_plus_coref.coreference.NodePairIterator
- All Implemented Interfaces:
- java.util.Iterator, PipeInputIterator
- public class NodePairIterator
- extends AbstractPipeInputIterator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodePairIterator
public NodePairIterator(java.util.List nodes)
NodePairIterator
public NodePairIterator(java.util.List nodes,
double negativeProb)
NodePairIterator
public NodePairIterator(java.util.List nodes,
java.util.List pairs)
- NodePairIterator Constructor (2 arg overload). Instead of all pairs
of nodes (N choose 2), this constructor only makes the pairs passed
in a list. Each element of the list is assumed to be an array of 2
Integers.
- Parameters:
nodes - pairs -
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator- Specified by:
hasNext in class AbstractPipeInputIterator
nextInstance
public Instance nextInstance()
- Specified by:
nextInstance in interface PipeInputIterator- Specified by:
nextInstance in class AbstractPipeInputIterator
next
public java.lang.Object next()
- Specified by:
next in interface java.util.Iterator- Overrides:
next in class AbstractPipeInputIterator
remove
public void remove()
- Specified by:
remove in interface java.util.Iterator- Overrides:
remove in class AbstractPipeInputIterator