rita.support.remote
Class RemotePosTagger

java.lang.Object
  extended by rita.support.remote.RiClientStub
      extended by rita.support.remote.RemotePosTagger
All Implemented Interfaces:
RiTaggerIF, RemoteConstants

public class RemotePosTagger
extends RiClientStub
implements RiTaggerIF


Field Summary
 
Fields inherited from class rita.support.remote.RiClientStub
serverHost, serverPort
 
Fields inherited from interface rita.support.remote.RemoteConstants
ARG_DELIM, ARR_DELIM, CHUNKER, DELIM, FS, LB, LP, MARKOV, PARSER, QQ, RB, RP, SPC, TAGGER, TYPE_DELIM
 
Constructor Summary
RemotePosTagger(java.lang.Class delegatesTo)
           
 
Method Summary
 void destroy()
           
 boolean isAdjective(java.lang.String word)
          Returns true if word is an adjective.
 boolean isAdverb(java.lang.String word)
          Returns true if word is an adverb.
 boolean isNoun(java.lang.String word)
          Returns true if word is a noun.
 boolean isVerb(java.lang.String word)
          Returns true if word is a verb.
static void main(java.lang.String[] args)
           
 java.util.List tag(java.util.List tokens)
           
 java.lang.String[] tag(java.lang.String[] tokens)
          Returns a String array of the most probably tags
 java.lang.String[] tagFile(java.lang.String fileName)
          Loads a file, splits the input into sentences and returns a String[] of the most probably tags.
 java.lang.String tagInline(java.lang.String sentence)
          Returns a String with pos-tags notated inline
 java.lang.String tagInline(java.lang.String[] tokens)
          Returns a String with pos-tags notated inline
 
Methods inherited from class rita.support.remote.RiClientStub
connect, createRemote, createRemote, exec, exec, exec, exec, exec, exec, exec, exec, getProxy, getRemoteObjectCount, getServerHost, getServerPort, invokeOnServer, listToStrArr, refreshServer, setPort, setServerHost, setServerPort, toStrArr
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemotePosTagger

public RemotePosTagger(java.lang.Class delegatesTo)
Method Detail

isAdjective

public boolean isAdjective(java.lang.String word)
Description copied from interface: RiTaggerIF
Returns true if word is an adjective.

Specified by:
isAdjective in interface RiTaggerIF

isAdverb

public boolean isAdverb(java.lang.String word)
Description copied from interface: RiTaggerIF
Returns true if word is an adverb.

Specified by:
isAdverb in interface RiTaggerIF

isNoun

public boolean isNoun(java.lang.String word)
Description copied from interface: RiTaggerIF
Returns true if word is a noun.

Specified by:
isNoun in interface RiTaggerIF

isVerb

public boolean isVerb(java.lang.String word)
Description copied from interface: RiTaggerIF
Returns true if word is a verb.

Specified by:
isVerb in interface RiTaggerIF

tag

public java.util.List tag(java.util.List tokens)

tag

public java.lang.String[] tag(java.lang.String[] tokens)
Description copied from interface: RiTaggerIF
Returns a String array of the most probably tags

Specified by:
tag in interface RiTaggerIF

tagInline

public java.lang.String tagInline(java.lang.String[] tokens)
Description copied from interface: RiTaggerIF
Returns a String with pos-tags notated inline

Specified by:
tagInline in interface RiTaggerIF

tagInline

public java.lang.String tagInline(java.lang.String sentence)
Description copied from interface: RiTaggerIF
Returns a String with pos-tags notated inline

Specified by:
tagInline in interface RiTaggerIF

destroy

public void destroy()

tagFile

public java.lang.String[] tagFile(java.lang.String fileName)
Description copied from interface: RiTaggerIF
Loads a file, splits the input into sentences and returns a String[] of the most probably tags.

Specified by:
tagFile in interface RiTaggerIF

main

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