Reads a PTBFile from an iterator over lines.
Reads a PTBFile from an iterator over lines.
Assumes that the given lines are taken directly from a PTB file. Behavior is undefined if not.
the lines of a PTB file
Parses a SyntaxTree from its flattened column representation in the CoNLL data.
Parses a SyntaxTree from its flattened column representation in the CoNLL data.
Assumes the data is in the correct format. Undefined behavior otherwise.
the flattened column representation of the tree