Examples of addMatchedTerm()


Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addMatchedTerm()

            acr.add(c);
        }
        // if expanded form was matched as a single concept
        if(exp != null){
          // fix annotations
          exp.addMatchedTerm(acronym);
          exp.setAnnotations(null);
          exp.setText(null);
          // save acronym with expanded form code
          getAcronyms().put(acronym,exp.getCode());
          // if there was a different acronym selected, then remove them
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addMatchedTerm()

      if(!isFilteredOut(c)){
        c.setScore(1.0);
        if(result.containsKey(c)){
          Concept oc = result.get(c);
          for(String ot: c.getMatchedTerms())
            oc.addMatchedTerm(ot);
          for(Annotation a: c.getAnnotations())
            oc.addAnnotation(a);
        }else
          result.put(c,c);
      }
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addMatchedTerm()

          c = new Concept(code,term);
        }
        // clone
        c = c.clone();
        c.setTerminology(this);
        c.addMatchedTerm(oterm);
        c.setSearchString(text);
       
        if(ignoreAcronyms && isAcronym(c))
          continue;
     
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addMatchedTerm()

        if(!isFilteredOut(c)){
          // if we have multipe annotations, deal with it better
          if(result.containsKey(c)){
            Concept oc = result.get(c);
            for(String ot: c.getMatchedTerms())
              oc.addMatchedTerm(ot);
            // this actually fails to identify multiple mentions
            //for(Annotation a: c.getAnnotations())
            //  oc.addAnnotation(a);
          }else
            result.put(c,c);
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.terminology.Concept.addMatchedTerm()

          c = new Concept(code,term);
        }
        // clone
        c = c.clone();
        c.setTerminology(this);
        c.addMatchedTerm(oterm);
        c.setSearchString(text);
       
        if(ignoreAcronyms && isAcronym(c))
          continue;
     
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Concept.addMatchedTerm()

              acr.add(c);
          }
          // if expanded form was matched as a single concept
          if(exp != null){
            // fix annotations
            exp.addMatchedTerm(acronym);
            exp.setAnnotations(null);
            exp.setText(null);
            // save acronym with expanded form code
            getAcronyms().put(acronym,exp.getCode());
            // if there was a different acronym selected, then remove them
View Full Code Here

Examples of edu.pitt.terminology.lexicon.Concept.addMatchedTerm()

        if(!isFilteredOut(c)){
          // if we have multipe annotations, deal with it better
          if(result.containsKey(c)){
            Concept oc = result.get(c);
            for(String ot: c.getMatchedTerms())
              oc.addMatchedTerm(ot);
            for(Annotation a: c.getAnnotations())
              oc.addAnnotation(a);
          }else
            result.put(c,c);
        }
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.