jvnpostag
Class MaxentTagger

java.lang.Object
  extended by jvnpostag.MaxentTagger
All Implemented Interfaces:
POSTagger

public class MaxentTagger
extends java.lang.Object
implements POSTagger


Constructor Summary
MaxentTagger(java.lang.String modelDir)
           
 
Method Summary
 void init(java.lang.String modeldir)
           
 void setDataReader(DataReader reader)
          Set data writer and reader to this pos tagger this is used to be adaptable to different format of input/output data
 void setDataWriter(DataWriter writer)
           
 java.lang.String tagging(java.io.File file)
          Annotate content of file with part-of-speech tags
 java.lang.String tagging(java.lang.String instr)
          Annotate string with part-of-speech tags
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxentTagger

public MaxentTagger(java.lang.String modelDir)
Method Detail

init

public void init(java.lang.String modeldir)
Specified by:
init in interface POSTagger

tagging

public java.lang.String tagging(java.lang.String instr)
Description copied from interface: POSTagger
Annotate string with part-of-speech tags

Specified by:
tagging in interface POSTagger
Parameters:
instr - string has been done word segmentation
Returns:
string annotated with part-of-speech tags

tagging

public java.lang.String tagging(java.io.File file)
Description copied from interface: POSTagger
Annotate content of file with part-of-speech tags

Specified by:
tagging in interface POSTagger
Parameters:
file - of which content has been done word segmentation
Returns:
string annotated with part-of-speech tags

setDataReader

public void setDataReader(DataReader reader)
Description copied from interface: POSTagger
Set data writer and reader to this pos tagger this is used to be adaptable to different format of input/output data

Specified by:
setDataReader in interface POSTagger

setDataWriter

public void setDataWriter(DataWriter writer)
Specified by:
setDataWriter in interface POSTagger