|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SyntaxGraphReader
| Method Summary | |
|---|---|
void |
close()
Closes the file or the input stream. |
DataFormatInstance |
getDataFormatInstance()
Returns the input data format instance |
int |
getIterationCounter()
|
int |
getNIterations()
|
String |
getOptions()
Returns a string representation of the reader specific options. |
int |
getSentenceCount()
Returns the current number of the sentence. |
void |
open(InputStream is,
String charsetName)
Opens an input stream |
void |
open(String fileName,
String charsetName)
Opens a file for read only |
void |
open(URL url,
String charsetName)
Opens an URL for read only |
void |
readEpilog()
Reads the end of the file, after all sentences have been processed, |
void |
readProlog()
Cause the syntax graph reader to read the beginning of the file (such as header information) |
boolean |
readSentence(TokenStructure syntaxGraph)
Reads a sentence (token structure, dependency structure or/and phrase structure) |
void |
setDataFormatInstance(DataFormatInstance dataFormatInstance)
Sets the input data format instance |
void |
setNIterations(int iterations)
|
void |
setOptions(String optionString)
Sets the reader specific options. |
| Method Detail |
|---|
void open(String fileName,
String charsetName)
throws MaltChainedException
fileName - the file name of the filecharsetName - the name of the character encoding set
MaltChainedException
void open(URL url,
String charsetName)
throws MaltChainedException
url - the URL of the resourcecharsetName - the name of the character encoding set
MaltChainedException
void open(InputStream is,
String charsetName)
throws MaltChainedException
is - an input streamcharsetName - the name of the character encoding set
MaltChainedException
void readProlog()
throws MaltChainedException
MaltChainedException
boolean readSentence(TokenStructure syntaxGraph)
throws MaltChainedException
syntaxGraph - a syntax graph (token structure, dependency structure or/and phrase structure)
MaltChainedException
void readEpilog()
throws MaltChainedException
MaltChainedException
int getSentenceCount()
throws MaltChainedException
MaltChainedExceptionDataFormatInstance getDataFormatInstance()
void setDataFormatInstance(DataFormatInstance dataFormatInstance)
dataFormatInstance - an input data format instanceString getOptions()
void setOptions(String optionString)
throws MaltChainedException
optionString - a string representation of the reader specific options
MaltChainedException
void close()
throws MaltChainedException
MaltChainedExceptionint getNIterations()
void setNIterations(int iterations)
int getIterationCounter()
|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||