public class CollocationFinder
extends java.lang.Object
Constructor and Description |
---|
CollocationFinder(Tree t,
WordNetConnection w)
Construct a new
CollocationFinder over the Tree t. |
CollocationFinder(Tree t,
WordNetConnection w,
HeadFinder hf)
Construct a new
CollocationFinder over the Tree t. |
Modifier and Type | Method and Description |
---|---|
Tree |
getMangledTree()
Returns the "collocations included" parse tree.
|
void |
printCollocationStrings(java.io.PrintWriter pw)
Prints the collocations found in this
Tree as strings. |
public CollocationFinder(Tree t, WordNetConnection w)
t
- parse treew
- wordnet connectionpublic CollocationFinder(Tree t, WordNetConnection w, HeadFinder hf)
CollocationFinder
over the Tree
t.t
- parse treew
- wordnet connectionhf
- HeadFinder
to usepublic Tree getMangledTree()
public void printCollocationStrings(java.io.PrintWriter pw)
Tree
as strings.
Each is followed by its boundary constituent indices in the original tree.
throw_up (2,3)
came_up_with (7,9)