jvnpostag
Interface POSTagger

All Known Implementing Classes:
CRFTagger, MaxentTagger

public interface POSTagger


Method Summary
 void init(java.lang.String modelfile)
           
 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
 

Method Detail

init

void init(java.lang.String modelfile)

tagging

java.lang.String tagging(java.lang.String instr)
Annotate string with part-of-speech tags

Parameters:
instr - string has been done word segmentation
Returns:
string annotated with part-of-speech tags

tagging

java.lang.String tagging(java.io.File file)
Annotate content of file with part-of-speech tags

Parameters:
file - of which content has been done word segmentation
Returns:
string annotated with part-of-speech tags

setDataReader

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


setDataWriter

void setDataWriter(DataWriter writer)