|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.nlp.taggerservices.XeroxParcTaggerClient
public final class XeroxParcTaggerClient
XeroxParcTaggerClient is a client to a socket based tagger server that runs locally at NLM. When this server cannot be connected to, this class throws an exception. Fri Mar 30 17:54:53 EST 2001, divita Initial Version
| Constructor Summary | |
|---|---|
XeroxParcTaggerClient()
This is a constructor for TaggerClient This constructor has no parameters. |
|
XeroxParcTaggerClient(gov.nih.nlm.nls.utils.GlobalBehavior pSettings)
This is a constructor for TaggerClient |
|
| Method Summary | |
|---|---|
void |
close()
Method close |
static int |
convert(java.lang.String pTag)
Method convert converts XeroxParc part of speech tags to the part of speech tags we use. |
int |
correctTheTag(java.lang.String pString)
correctTheTag checks for a string, and corrects it to what we are expecting. |
protected void |
finalize()
Release any resources used for Tagger access upon object finalization. |
void |
init(gov.nih.nlm.nls.utils.GlobalBehavior pSettings)
Method init |
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. |
void |
processTaggerInput(Sentence pSentence,
java.util.Vector pTaggerTokens)
Method processTaggerInput adds the tagger tag to each token of the input. |
void |
processXeroxParcTag(Token pToken,
java.lang.String pTaggerInput)
Method processXeroxParcTag marries the tagger's tag to the token. |
void |
tag(Sentence pSentence)
Method tag implements the tagInterface for the xerox parc tagger client |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XeroxParcTaggerClient()
throws java.lang.Exception
java.lang.Exception
public XeroxParcTaggerClient(gov.nih.nlm.nls.utils.GlobalBehavior pSettings)
throws java.lang.Exception
pSettings -
java.lang.Exception| Method Detail |
|---|
public void init(gov.nih.nlm.nls.utils.GlobalBehavior pSettings)
throws java.lang.Exception
pSettings -
java.lang.Exceptionpublic void close()
close in interface TaggerInterfacepublic void tag(Sentence pSentence)
tag in interface TaggerInterfacepSentence -
public void processTaggerInput(Sentence pSentence,
java.util.Vector pTaggerTokens)
pSentence - pTaggerTokens -
public void processXeroxParcTag(Token pToken,
java.lang.String pTaggerInput)
pToken - pTaggerInput - public static int convert(java.lang.String pTag)
pTag -
public int correctTheTag(java.lang.String pString)
pString -
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic static final void main(java.lang.String[] argv)
argv - The command line input, tokenized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||