Package edu.pitt.dbmi.nlp.noble.terminology

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


         
          // add to concept
          c.addSynonym(text);
          c.addSource(source);
          c.addTerm(term);
          c.addCode(code, source);
         
          // set preferred name for the first time
          if(term.isPreferred()){
            // if prefered name source is not set OR
            // we have filtering and the new source offset is less then old source offset (which means higher priority)
View Full Code Here


      c.setSynonyms(synonyms.toArray(new String [0]));
      c.setSources(sources.toArray(new Source [0]));
      c.setTerms(terms.toArray(new Term [0]));
      c.setDefinitions(definitions.toArray(new Definition [0]));
      for(String code: codes.keySet())
        c.addCode(code,codes.get(code));
      c.setInitialized(true);
     
      return c;
     
    }catch(Exception ex){
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.