gov.nih.nlm.mms
Class ConceptRanker

java.lang.Object
  extended by gov.nih.nlm.mms.ConceptRanker

public class ConceptRanker
extends Object


Constructor Summary
ConceptRanker()
           
 
Method Summary
protected  Map assignLrl(Atom[] atoms)
          Assigns the LRL value.
 String getNullValue()
          Returns the null value.
 boolean isEmptyValue(String token)
          Indicates whether or not the specified token is null or contains a null value as defined by being either zero length or a value equal to the null value.
protected  boolean isLuiSuppressible(String lui, Atom[] atoms)
          Returns true if the specified LUI is suppressible.
static void main(String[] args)
           
 void transform(String dir, boolean rich_input, boolean rich_output)
           
protected  void writeMRCON(Concept concept, PrintWriter out)
          Writes MRCON entries for a Concept
protected  void writeMRCONSO(Concept concept, PrintWriter out)
          Writes MRCONSO.RRF entries for a Concept
protected  void writeMRSO(Concept concept, PrintWriter out)
          Writes MRSO entries for a Concept
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConceptRanker

public ConceptRanker()
Method Detail

transform

public void transform(String dir,
                      boolean rich_input,
                      boolean rich_output)
               throws Exception
Throws:
Exception

writeMRCONSO

protected void writeMRCONSO(Concept concept,
                            PrintWriter out)
                     throws IOException
Writes MRCONSO.RRF entries for a Concept

Parameters:
concept - the Concept to write
Throws:
IOException - if anything goes wrong

writeMRSO

protected void writeMRSO(Concept concept,
                         PrintWriter out)
                  throws IOException
Writes MRSO entries for a Concept

Parameters:
concept - the Concept to write
Throws:
IOException - if anything goes wrong

writeMRCON

protected void writeMRCON(Concept concept,
                          PrintWriter out)
                   throws IOException
Writes MRCON entries for a Concept

Parameters:
concept - the Concept to write
Throws:
IOException - if anything goes wrong

isLuiSuppressible

protected boolean isLuiSuppressible(String lui,
                                    Atom[] atoms)
Returns true if the specified LUI is suppressible.

Parameters:
lui - the LUI value to check
atoms - the Atoms
Returns:
true if the LUI is suppressible, false otherwise

assignLrl

protected Map assignLrl(Atom[] atoms)
Assigns the LRL value.

Parameters:
atoms - the Atoms to be assigned
Returns:
Map of cui:sui tuple mapped to lrl

isEmptyValue

public boolean isEmptyValue(String token)
Indicates whether or not the specified token is null or contains a null value as defined by being either zero length or a value equal to the null value.


getNullValue

public String getNullValue()
Returns the null value. This is needed if release.dat specifies some non-standard null value char sequence.


main

public static void main(String[] args)


Copyright ©2005