Package com.clearnlp.propbank.frameset

Examples of com.clearnlp.propbank.frameset.MultiFrames


      return new DefaultSRLabeler(xmls, getFrames(frameDir));
  }

  protected AbstractFrames getFrames(String frameDir)
  {
    return (frameDir != null) ? new MultiFrames(frameDir) : null;
  }
View Full Code Here


    }
  }
 
  void checkMisalignedArgs(String[] args)
  {
    MultiFrames frames = new MultiFrames(args[0]);
    PBReader reader = new PBReader(UTInput.createBufferedFileReader(args[1]));
    int invalid = 0, total = 0;
    PBInstance instance;
    PBRoleset  roleset;
    String type;
   
    while ((instance = reader.nextInstance()) != null)
    {
      type = instance.type;
     
      if (type.endsWith(PBType.VERB.getValue()))
      {
        roleset = frames.getRoleset(PBType.VERB, type.substring(0,type.length()-2), instance.roleset);
        total++;
       
        if (roleset != null)
        {
          for (PBArg arg : instance.getArgs())
View Full Code Here

    }
  }
 
  void checkMisalignedArgs(String[] args)
  {
    MultiFrames frames = new MultiFrames(args[0]);
    PBReader reader = new PBReader(UTInput.createBufferedFileReader(args[1]));
    int invalid = 0, total = 0;
    PBInstance instance;
    PBRoleset  roleset;
    String type;
   
    while ((instance = reader.nextInstance()) != null)
    {
      type = instance.type;
     
      if (type.endsWith(PBType.VERB.getValue()))
      {
        roleset = frames.getRoleset(PBType.VERB, type.substring(0,type.length()-2), instance.roleset);
        total++;
       
        if (roleset != null)
        {
          for (PBArg arg : instance.getArgs())
View Full Code Here

    }
  }
 
  void checkMisalignedArgs(String[] args)
  {
    MultiFrames frames = new MultiFrames(args[0]);
    PBReader reader = new PBReader(UTInput.createBufferedFileReader(args[1]));
    int invalid = 0, total = 0;
    PBInstance instance;
    PBRoleset  roleset;
    String type;
   
    while ((instance = reader.nextInstance()) != null)
    {
      type = instance.type;
     
      if (type.endsWith(PBType.VERB.getValue()))
      {
        roleset = frames.getRoleset(PBType.VERB, type.substring(0,type.length()-2), instance.roleset);
        total++;
       
        if (roleset != null)
        {
          for (PBArg arg : instance.getArgs())
View Full Code Here

      return new DefaultSRLabeler(xmls, getFrames(frameDir));
  }

  protected AbstractFrames getFrames(String frameDir)
  {
    return (frameDir != null) ? new MultiFrames(frameDir) : null;
  }
View Full Code Here

*/
public class FindPolyVerbs
{
  public FindPolyVerbs(String framesDir) throws IOException
  {
    MultiFrames frames = new MultiFrames(framesDir);
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    Collection<PBFrameset> fs = frames.getFramesetMap(PBType.VERB).values();
    List<PBRoleset> rolesets;
    String vncls;

    while ((vncls = in.readLine()) != null)
    {
View Full Code Here

TOP

Related Classes of com.clearnlp.propbank.frameset.MultiFrames

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.