Class KBestParseForest


  • public class KBestParseForest
    extends java.lang.Object
    • Field Detail

      • rootType

        public static int rootType
    • Constructor Detail

      • KBestParseForest

        public KBestParseForest​(int start,
                                int end,
                                DependencyInstance inst,
                                int K)
    • Method Detail

      • add

        public boolean add​(int s,
                           int type,
                           int dir,
                           double score,
                           FeatureVector fv)
      • getProb

        public double getProb​(int s,
                              int t,
                              int dir,
                              int comp)
      • getProb

        public double getProb​(int s,
                              int t,
                              int dir,
                              int comp,
                              int i)
      • getProbs

        public double[] getProbs​(int s,
                                 int t,
                                 int dir,
                                 int comp)
      • getItem

        public ParseForestItem getItem​(int s,
                                       int t,
                                       int dir,
                                       int comp)
      • getItem

        public ParseForestItem getItem​(int s,
                                       int t,
                                       int dir,
                                       int comp,
                                       int k)
      • getItems

        public ParseForestItem[] getItems​(int s,
                                          int t,
                                          int dir,
                                          int comp)
      • getBestParse

        public java.lang.Object[] getBestParse()
      • getBestParses

        public java.lang.Object[][] getBestParses()
      • getDepString

        public java.lang.String getDepString​(ParseForestItem pfi)