de.pado.dv
Class Corpus

java.lang.Object
  extended by de.pado.dv.Corpus

public class Corpus
extends java.lang.Object

A Corpus is a sequence of dependency parses. It only allows sequentual reading of parses.


Constructor Summary
Corpus(Logfile l)
          Read corpus from STDIN and write error output to l.
Corpus(java.lang.String filename, Logfile l)
          Read corpus from filename and write error output to l.
 
Method Summary
 long charcounter()
          Returns the number of bytes read from the current corpus
 Graph nextParseGraph()
          Returns the next parse graph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Corpus

public Corpus(Logfile l)
       throws java.io.IOException
Read corpus from STDIN and write error output to l. The constructor auto-detects the MINIPAR triple format and full format.

Throws:
java.io.IOException

Corpus

public Corpus(java.lang.String filename,
              Logfile l)
       throws java.io.IOException
Read corpus from filename and write error output to l. The constructor auto-detects the MINIPAR triple format and full format.

Throws:
java.io.IOException
Method Detail

charcounter

public long charcounter()
Returns the number of bytes read from the current corpus


nextParseGraph

public Graph nextParseGraph()
                     throws java.io.IOException
Returns the next parse graph

Throws:
java.io.IOException