Parsing Engine

Package danbikel.parser.util

Utility classes for displaying and manipulating parse trees.

See:
          Description

Class Summary
AddFakePos Reads in a file of gold-standard parsed sentences and a file of machine-parsed sentences, replacing every occurrence of null in the machine-parsed file with the original sentence and then adding fake parts of speech for each word of that original sentence that will not to be deleted by the scorer.
DebugChart A class to print to System.err the constituents of a gold-standard parse tree that were found by the parser, according to its output chart file.
KeepNodes Provides a utility method, as well as a KeepNodes.main(java.lang.String[]) method that invokes it, to keep only certain nodes in a tree, deleting all others, except the root node, which is never deleted.
LispHead Equivalent of Unix head command but for input streams/files containing S-expressions.
ParseToSentence Reads parse trees either from standard input or a specified file, converting them to sentences and printing those sentences on standard output.
PrettyPrint Reads in a file of parse trees and outputs pretty-printed versions.
PrintCFG Class to provide a main method to read Treebank trees and print out the underlying CFG grammar induced from those trees.
PrintNTs A class with a main method for reading trees and printing the complete set of nonterminals used in those trees.
PrintTags A class with a main method for reading trees and printing the complete set of part-of-speech tags (preterminals) used in those trees.
TrainerEventToCollins A class to convert TrainerEvent instances to String instances of the form produced by Mike Collins’ parser.
Util Contains basic utility functions for Sexp objects that represent parse trees.
 

Package danbikel.parser.util Description

Utility classes for displaying and manipulating parse trees.


Parsing Engine

Author: Dan Bikel.