|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.maltparser.core.syntaxgraph.reader.BracketReader
public class BracketReader
| Constructor Summary | |
|---|---|
BracketReader()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the file or the input stream. |
String |
getCharsetName()
|
DataFormatInstance |
getDataFormatInstance()
Returns the input data format instance |
String |
getFileName()
|
int |
getIterationCounter()
|
int |
getNIterations()
|
String |
getOptions()
Returns a string representation of the reader specific options. |
BufferedReader |
getReader()
|
int |
getSentenceCount()
Returns the current number of the sentence. |
URL |
getUrl()
|
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 |
setCharsetName(String charsetName)
|
void |
setDataFormatInstance(DataFormatInstance inputDataFormatInstance)
Sets the input data format instance |
void |
setFileName(String fileName)
|
void |
setNIterations(int iterations)
|
void |
setOptions(String optionString)
Sets the reader specific options. |
void |
setReader(BufferedReader reader)
|
void |
setSentenceCount(int sentenceCount)
|
void |
setUrl(URL url)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BracketReader()
| Method Detail |
|---|
public void open(String fileName,
String charsetName)
throws MaltChainedException
SyntaxGraphReader
open in interface SyntaxGraphReaderfileName - the file name of the filecharsetName - the name of the character encoding set
MaltChainedException
public void open(URL url,
String charsetName)
throws MaltChainedException
SyntaxGraphReader
open in interface SyntaxGraphReaderurl - the URL of the resourcecharsetName - the name of the character encoding set
MaltChainedException
public void open(InputStream is,
String charsetName)
throws MaltChainedException
SyntaxGraphReader
open in interface SyntaxGraphReaderis - an input streamcharsetName - the name of the character encoding set
MaltChainedException
public void readProlog()
throws MaltChainedException
SyntaxGraphReader
readProlog in interface SyntaxGraphReaderMaltChainedException
public boolean readSentence(TokenStructure syntaxGraph)
throws MaltChainedException
SyntaxGraphReader
readSentence in interface SyntaxGraphReadersyntaxGraph - a syntax graph (token structure, dependency structure or/and phrase structure)
MaltChainedException
public void readEpilog()
throws MaltChainedException
SyntaxGraphReader
readEpilog in interface SyntaxGraphReaderMaltChainedExceptionpublic BufferedReader getReader()
public void setReader(BufferedReader reader)
public int getSentenceCount()
throws MaltChainedException
SyntaxGraphReader
getSentenceCount in interface SyntaxGraphReaderMaltChainedExceptionpublic void setSentenceCount(int sentenceCount)
public DataFormatInstance getDataFormatInstance()
SyntaxGraphReader
getDataFormatInstance in interface SyntaxGraphReaderpublic void setDataFormatInstance(DataFormatInstance inputDataFormatInstance)
SyntaxGraphReader
setDataFormatInstance in interface SyntaxGraphReaderinputDataFormatInstance - an input data format instancepublic String getOptions()
SyntaxGraphReader
getOptions in interface SyntaxGraphReader
public void setOptions(String optionString)
throws MaltChainedException
SyntaxGraphReader
setOptions in interface SyntaxGraphReaderoptionString - a string representation of the reader specific options
MaltChainedExceptionpublic String getFileName()
public void setFileName(String fileName)
public URL getUrl()
public void setUrl(URL url)
public String getCharsetName()
public void setCharsetName(String charsetName)
public int getNIterations()
getNIterations in interface SyntaxGraphReaderpublic void setNIterations(int iterations)
setNIterations in interface SyntaxGraphReaderpublic int getIterationCounter()
getIterationCounter in interface SyntaxGraphReader
public void close()
throws MaltChainedException
SyntaxGraphReader
close in interface SyntaxGraphReaderMaltChainedException
|
MaltParser 1.4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||