|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsem.graphreader.ParsevalGraphReader
public class ParsevalGraphReader
Graph reader for the Parseval format. It will also work with the DepBank/GR format, but it will not correctly map lemmas together, as that representation doesn't include token numbering.
Example files were parsed using:
./rasp.sh -m -p'-e'
Constructor Summary | |
---|---|
ParsevalGraphReader(java.lang.String inputPath,
boolean simpleEdgeFormat,
boolean simpleNodeFormat)
GraphReader for the Parseval format. |
Method Summary | |
---|---|
void |
close()
Close the reader. |
boolean |
hasNext()
Check whether there is another graph available. |
static void |
main(java.lang.String[] args)
|
Graph |
next()
Get the next graph. |
java.util.ArrayList<Graph> |
nextSentence()
Get the next sentence. |
void |
reset()
Reset the reader. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsevalGraphReader(java.lang.String inputPath, boolean simpleEdgeFormat, boolean simpleNodeFormat) throws GraphFormatException
inputPath
- simpleFormat
- Enable simple node format
GraphFormatException
Method Detail |
---|
public boolean hasNext()
hasNext
in interface GraphReader
public Graph next() throws GraphFormatException
next
in interface GraphReader
GraphFormatException
public java.util.ArrayList<Graph> nextSentence() throws GraphFormatException
nextSentence
in interface GraphReader
GraphFormatException
public void reset() throws GraphFormatException
reset
in interface GraphReader
GraphFormatException
public void close()
close
in interface GraphReader
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |