|
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.TigerXMLReader
public class TigerXMLReader
Constructor Summary | |
---|---|
TigerXMLReader()
|
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. |
XMLStreamReader |
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(XMLStreamReader 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 TigerXMLReader()
Method Detail |
---|
public void open(String fileName, String charsetName) throws MaltChainedException
SyntaxGraphReader
open
in interface SyntaxGraphReader
fileName
- 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 SyntaxGraphReader
url
- 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 SyntaxGraphReader
is
- an input streamcharsetName
- the name of the character encoding set
MaltChainedException
public void readProlog() throws MaltChainedException
SyntaxGraphReader
readProlog
in interface SyntaxGraphReader
MaltChainedException
public boolean readSentence(TokenStructure syntaxGraph) throws MaltChainedException
SyntaxGraphReader
readSentence
in interface SyntaxGraphReader
syntaxGraph
- a syntax graph (token structure, dependency structure or/and phrase structure)
MaltChainedException
public int getSentenceCount()
SyntaxGraphReader
getSentenceCount
in interface SyntaxGraphReader
public void setSentenceCount(int sentenceCount)
public XMLStreamReader getReader()
public void setReader(XMLStreamReader reader)
public void readEpilog() throws MaltChainedException
SyntaxGraphReader
readEpilog
in interface SyntaxGraphReader
MaltChainedException
public void close() throws MaltChainedException
SyntaxGraphReader
close
in interface SyntaxGraphReader
MaltChainedException
public DataFormatInstance getDataFormatInstance()
SyntaxGraphReader
getDataFormatInstance
in interface SyntaxGraphReader
public void setDataFormatInstance(DataFormatInstance inputDataFormatInstance)
SyntaxGraphReader
setDataFormatInstance
in interface SyntaxGraphReader
inputDataFormatInstance
- an input data format instancepublic String getOptions()
SyntaxGraphReader
getOptions
in interface SyntaxGraphReader
public void setOptions(String optionString) throws MaltChainedException
SyntaxGraphReader
setOptions
in interface SyntaxGraphReader
optionString
- a string representation of the reader specific options
MaltChainedException
public 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 SyntaxGraphReader
public void setNIterations(int iterations)
setNIterations
in interface SyntaxGraphReader
public int getIterationCounter()
getIterationCounter
in interface SyntaxGraphReader
|
MaltParser 1.4.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |