Package edu.stanford.nlp.ie.machinereading.domains.ace.reader

Examples of edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceEntityMention


    List<ExtractionObject> convertedArgs = new ArrayList<ExtractionObject>();

    int left = Integer.MAX_VALUE;
    int right = Integer.MIN_VALUE;
    for(String role: roles){
      AceEntityMention arg = aceEventMention.getArg(role);
      ExtractionObject o = entityMap.get(arg.getId());
      if(o == null){
        logger.severe("READER ERROR: Failed to find event argument with id " + arg.getId());
        logger.severe("This happens because a few event mentions illegally span multiple sentences. Will ignore this mention.");
        return null;
      }
      convertedArgs.add(o);
      if(o.getExtentTokenStart() < left) left = o.getExtentTokenStart();
View Full Code Here

TOP

Related Classes of edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceEntityMention

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.