TC Java
2009 Version

gov.nih.nlm.nls.tc.Jdi
Class WordSignalWcDcs

java.lang.Object
  extended by gov.nih.nlm.nls.tc.Jdi.WordSignalWcDcs

public class WordSignalWcDcs
extends java.lang.Object

This class is to load Word-Signal-Wc-Dc objects from a flat file.

History:

Version:
V-2009
Author:
NLM Lexical Systems Group

Constructor Summary
WordSignalWcDcs(java.lang.String inFile)
          Create the WordSignalWcDcs List object by specifying the input file.
WordSignalWcDcs(java.lang.String inFile, boolean verbose)
          Create the WordSignalWcDcs List object by specifying the input file and flag of verbose.
 
Method Summary
 boolean ContainsWord(java.lang.String word)
          Check if a string is a word in WordSignalWcDc collection
 int GetDcByWord(java.lang.String word)
          Get document count by specifying word.
 double GetSignalByWord(java.lang.String word)
          Get normalized signal by specifying word.
 int GetWcByWord(java.lang.String word)
          Get word count by specifying word.
 WordSignalWcDc GetWordSignalWcDcByWord(java.lang.String word)
          Get WordSignalWcDc Java object by specifying word.
 java.util.Hashtable<java.lang.String,WordSignalWcDc> GetWordSignalWcDcs()
          Get WordSignalWcDcs list object.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WordSignalWcDcs

public WordSignalWcDcs(java.lang.String inFile)
Create the WordSignalWcDcs List object by specifying the input file.

Parameters:
inFile - file name of WordSignalWcDcs (wordSignalWcDcGt1.txt)

WordSignalWcDcs

public WordSignalWcDcs(java.lang.String inFile,
                       boolean verbose)
Create the WordSignalWcDcs List object by specifying the input file and flag of verbose.

Parameters:
inFile - file name of WordSignalWcDcs (wordSignalWcDcGt1.txt)
verbose - flag of verbose on reading input file
Method Detail

GetWordSignalWcDcs

public java.util.Hashtable<java.lang.String,WordSignalWcDc> GetWordSignalWcDcs()
Get WordSignalWcDcs list object.

Returns:
WordSignalWcDcs list object

GetWordSignalWcDcByWord

public WordSignalWcDc GetWordSignalWcDcByWord(java.lang.String word)
Get WordSignalWcDc Java object by specifying word.

Parameters:
word - word
Returns:
WordSignalWcDc Java object

GetSignalByWord

public double GetSignalByWord(java.lang.String word)
Get normalized signal by specifying word.

Parameters:
word - word
Returns:
normalized signal

GetWcByWord

public int GetWcByWord(java.lang.String word)
Get word count by specifying word.

Parameters:
word - word
Returns:
word count

GetDcByWord

public int GetDcByWord(java.lang.String word)
Get document count by specifying word.

Parameters:
word - word
Returns:
document count

ContainsWord

public boolean ContainsWord(java.lang.String word)
Check if a string is a word in WordSignalWcDc collection

Parameters:
word - word to be checked
Returns:
true if it has this word false if it does not have this word

main

public static void main(java.lang.String[] args)

TC Java
2009 Version

Submit a bug or feature

Copyright © 2009 National Library of Medicine