public class CollocationFinder extends 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. |
CollocationFinder(Tree t,
WordNetConnection w,
HeadFinder hf,
boolean threadSafe)
Construct a new
CollocationFinder over the Tree t. |
Modifier and Type | Method and Description |
---|---|
Tree |
getMangledTree()
Returns the "collocations included" parse tree.
|
void |
PrintCollocationStrings(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 CollocationFinder(Tree t, WordNetConnection w, HeadFinder hf, boolean threadSafe)
CollocationFinder
over the Tree
t.t
- parse treew
- wordnet connectionhf
- HeadFinder
to usethreadSafe
- whether to include synchronization, etc.public Tree getMangledTree()
public void PrintCollocationStrings(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)