Package edu.pitt.text.tools

Examples of edu.pitt.text.tools.NegEx.process()


   * @param foundConcepts
   * @return
   */
  public List<Concept> processNegation(String phrase, Concept [] foundConcepts){
    NegEx negex = new NegEx();
    negex.process(phrase,Arrays.asList(foundConcepts));
    return negex.getNegatedConcepts();
  }
 
 
  /**
 
View Full Code Here


    List<Concept> r = getNeighbors(doc);
    List<Annotation> annotations = new ArrayList<Annotation>();
   
    // check for negation
    NegEx negex = new NegEx();
    negex.process(concept.getSearchString(),Collections.singletonList(concept));
    if(negex.getNegatedConcepts().contains(concept)){
      setAbsent(true);
      // add negation annotation
      for(Concept c: negex.getNegations())
        Collections.addAll(annotations,c.getAnnotations());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.