Package edu.pitt.text.tools

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


    // 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

Related Classes of edu.pitt.text.tools.NegEx

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.