LVG Java
2004 Version

gov.nih.nlm.nls.lvg.Util
Class XeroxParc

java.lang.Object
  |
  +--gov.nih.nlm.nls.lvg.Util.XeroxParc

public class XeroxParc
extends java.lang.Object

This class represents an object of an Xerox Parc stocastic tagger. The format of Xerox Parc stocastic tagger is ['term', 'category'].

History:

Version:
V-2004
Author:
NLM LVG Development Team

Constructor Summary
XeroxParc(java.lang.String tagger)
          Create an Xerox Parc stocastic tagger, using a string format
 
Method Summary
 java.lang.String GetCategory()
          Get the category in a string format.
 long GetCategoryValue()
          Get the category in a long integer format.
 java.lang.String GetTerm()
          Get the term in the tagger
 boolean IsLegal()
          Check if the format is legal
static void main(java.lang.String[] args)
          Test dirver for this class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XeroxParc

public XeroxParc(java.lang.String tagger)
Create an Xerox Parc stocastic tagger, using a string format

Method Detail

IsLegal

public boolean IsLegal()
Check if the format is legal

Returns:
true or false if the format of input is a legal or illegal format of an Xerox Parc stocastic tagger.

GetTerm

public java.lang.String GetTerm()
Get the term in the tagger

Returns:
Term in the Xerox Parc stocastic tagger

GetCategory

public java.lang.String GetCategory()
Get the category in a string format.

Returns:
a string representation of the category in the tagger

GetCategoryValue

public long GetCategoryValue()
Get the category in a long integer format.

Returns:
a long integer value of the category in the tagger

main

public static void main(java.lang.String[] args)
Test dirver for this class


LVG Java
2004 Version

Submit a bug or feature

Copyright © 2004 National Library of Medicine