Package mstparser

Examples of mstparser.DependencyInstance


  RelationalFeature[] rfeatsList = new RelationalFeature[rfeats.size()];
  rfeats.toArray(rfeatsList);

  // End of discourse stuff.

  return new DependencyInstance(forms, lemmas, cpos, pos, feats, deprels, heads, rfeatsList);

    }
View Full Code Here


      pos_new[i+1] = pos[i];
      deprels_new[i+1] = labeled ? deprels[i] : "<no-type>";
      heads_new[i+1] = heads[i];
  }

  DependencyInstance instance =
      new DependencyInstance(forms_new, pos_new, deprels_new, heads_new);

  // set up the course pos tags as just the first letter of the fine-grained ones
  String[] cpostags = new String[pos_new.length];
  cpostags[0] = "<root-CPOS>";
  for(int i = 1; i < pos_new.length; i++)
View Full Code Here

TOP

Related Classes of mstparser.DependencyInstance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.