Package edu.pitt.terminology.lexicon

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


        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.