Class WeightedRegularTreeGrammar<E extends GraphBasedNonterminal,T extends Comparable<T>>

All Implemented Interfaces:
Cloneable

public class WeightedRegularTreeGrammar<E extends GraphBasedNonterminal,T extends Comparable<T>> extends ConcreteRegularTreeGrammar<E>
  • Constructor Details

    • WeightedRegularTreeGrammar

      public WeightedRegularTreeGrammar(Semiring<T> s)
  • Method Details

    • setWeightForSplit

      public boolean setWeightForSplit(Split<E> s, T weight)
      TODO what to do if this split has a weight already?
      Parameters:
      s -
      weight -
      Returns:
    • getWeightForSplit

      public T getWeightForSplit(Split<E> split)
    • getSemiring

      public Semiring<T> getSemiring()
    • addSplit

      public void addSplit(E subgraph, Split<E> split, T weight)
    • getAllSplits

      public Set<Split<E>> getAllSplits()
    • addWeightedDomEdge

      public boolean addWeightedDomEdge(String src, String tgt, T weight)