Class CrossTemplate1

  extended by cc.mallet.grmm.learning.ACRF.Template
      extended by cc.mallet.grmm.learning.ACRF.SequenceTemplate
          extended by cc.mallet.grmm.examples.CrossTemplate1
All Implemented Interfaces:

public class CrossTemplate1
extends ACRF.SequenceTemplate

$Id:,v 1.1 2007/10/22 21:38:02 mccallum Exp $

See Also:
Serialized Form

Field Summary
Fields inherited from class cc.mallet.grmm.learning.ACRF.Template
index, weights
Constructor Summary
CrossTemplate1(int lvl1, int lvl2)
Method Summary
protected  void addInstantiatedCliques(ACRF.UnrolledGraph graph, FeatureVectorSequence fvs, LabelsAssignment lblseq)
          Adds all instiated cliques for an instance.
Methods inherited from class cc.mallet.grmm.learning.ACRF.SequenceTemplate
Methods inherited from class cc.mallet.grmm.learning.ACRF.Template
addSomeUnsupportedWeights, computeAssignment, computeFactor, createFactorMatrix, getAssignmentsPresent, getDefaultWeight, getDefaultWeights, getWeights, initWeights, isSupportedOnly, isTrainable, isUnsupportedWeightsAdded, modifyPotential, setDefaultWeight, setDefaultWeights, setTrainable, setWeights
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public CrossTemplate1(int lvl1,
                      int lvl2)
Method Detail


protected void addInstantiatedCliques(ACRF.UnrolledGraph graph,
                                      FeatureVectorSequence fvs,
                                      LabelsAssignment lblseq)
Description copied from class: ACRF.SequenceTemplate
Adds all instiated cliques for an instance. This method is called as a graph is being unrolled for an instance.

Specified by:
addInstantiatedCliques in class ACRF.SequenceTemplate
graph - The graph that the cliques will be added to.
fvs - The input features of the instance to unroll the cliques for.
lblseq - The label sequence of the instance being unrolled.