cc.mallet.grmm.inference
Class TRP.TreeListFactory
java.lang.Object
cc.mallet.grmm.inference.TRP.TreeListFactory
- All Implemented Interfaces:
- TRP.TreeFactory, java.io.Serializable
- Enclosing class:
- TRP
public static class TRP.TreeListFactory
- extends java.lang.Object
- implements TRP.TreeFactory
Generates spanning trees cyclically from a predefined collection.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRP.TreeListFactory
public TRP.TreeListFactory(java.util.List l)
TRP.TreeListFactory
public TRP.TreeListFactory(Tree[] arr)
makeFromReaders
public static TRP.TreeListFactory makeFromReaders(FactorGraph fg,
java.util.List readerList)
readFromFiles
public static TRP.TreeListFactory readFromFiles(FactorGraph fg,
java.util.List fileList)
- Parameters:
fileList
- List of File objects. Each file should be an XML document describing a tree.
nextTree
public Tree nextTree(FactorGraph mdl)
- Specified by:
nextTree
in interface TRP.TreeFactory