code: public static KBeamArcEagerDependencyParser train(String trainCorpus, String devCorpus, String clusterPath, String modelPath) throws InterruptedException, ExecutionException, IOException, ClassNotFoundException
      {
          Options options = new Options();
          options.train = true;
          options.inputFile = trainCorpus;
          options.devPath = devCorpus;
          options.clusterFile = clusterPath;
          options.modelFile = modelPath;
          Main.train(options);
          return new KBeamArcEagerDependencyParser(modelPath);
      }
docs: 训练依存句法分析器
  
  @param trainCorpus 训练集
  @param devCorpus   开发集
  @param clusterPath Brown词聚类文件
  @param modelPath   模型储存路径
  @throws InterruptedException
  @throws ExecutionException
  @throws IOException
  @throws ClassNotFoundException