Examples of NegEx


Examples of edu.pitt.dbmi.nlp.noble.tools.NegEx

    //((NobleCoderTerminology)getTerminology()).process(sentence);
   
   
    // now lets do negation detection
    if(handleNegation){
      NegEx negex = new NegEx();
      negex.process(sentence);
   
    }
    sentence.getProcessTime().put(getClass().getSimpleName(),(System.currentTimeMillis()-time));
    return sentence;
  }
View Full Code Here

Examples of edu.pitt.text.tools.NegEx

   * @param phrase
   * @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

Examples of edu.pitt.text.tools.NegEx

    // parse additional text to extract meaning
    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());
    }
   
    // parse concept for its attributes and values
    Concept c = findConcept(templateItem.getFeature());
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.