Class DependencyParser


  • public class DependencyParser
    extends java.lang.Object
    • Method Detail

      • train

        public void train​(int[] instanceLengths,
                          java.lang.String trainfile,
                          java.io.File train_forest)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • saveModel

        public void saveModel​(java.lang.String file)
                       throws java.io.IOException
        Throws:
        java.io.IOException
      • loadModel

        public void loadModel​(java.lang.String file)
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • setParameters

        public void setParameters​(double[] parameters)
      • outputParses

        public java.lang.String outputParses()
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • outputParses

        public java.lang.String outputParses​(java.lang.String content)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.FileNotFoundException,
                                java.lang.Exception
        Throws:
        java.io.FileNotFoundException
        java.lang.Exception