gov.nih.nlm.nls.gspell
Class Lamda

java.lang.Object
  extended bygov.nih.nlm.nls.gspell.Lamda

final class Lamda
extends java.lang.Object

Lamda is a repository class for those static methods that are useful, but I could not find a home for. The first of these is the break into grams method.

History

Mon Jul 30 15:29:55 EDT 2001, divita Initial Version

Notes:


Constructor Summary
(package private) Lamda()
           
 
Method Summary
(package private) static java.lang.String[] breakIntoGrams(java.lang.String pDocument)
          breakIntoGrams breaks an input document into it's constituent grams.
(package private) static void main(java.lang.String[] argv)
          This is a test main, whose purpose is to test the functionality of each method developed for this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Lamda

Lamda()
Method Detail

breakIntoGrams

static java.lang.String[] breakIntoGrams(java.lang.String pDocument)
                                  throws java.lang.Exception
breakIntoGrams breaks an input document into it's constituent grams. This function refers to a configuration setting GRAM_SIZE to determine the size of the gram. This method, returns the LOWERCASE grams.

Returns:
String[]
Throws:
e
java.lang.Exception

main

static final void main(java.lang.String[] argv)
This is a test main, whose purpose is to test the functionality of each method developed for this class. This main strives to test the boundary conditions as well as some sample common ways each method is intended to be used.

Returns:
int 0|-1 0 is returned if no problems, -1 is is returned if there is a problem.


The use and distribution of this material is subject to the terms and conditions included in the file SPECIALIST_NLP_TOOLS_TERMS_AND_CONDITIONS.TXT, located in the root directory of the distribution.