|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.trees.CollocationFinder
public class CollocationFinder
Finds WordNet collocations in parse trees.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
Tree |
getMangledTree()
Returns the "collocations included" parse tree. |
void |
PrintCollocationStrings(PrintWriter pw)
Prints the collocations found in this Tree as strings. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollocationFinder(Tree t,
WordNetConnection w)
CollocationFinder over the Tree t.
The default HeadFinder is a CollinsHeadFinder.
t - parse treew - wordnet connection
public CollocationFinder(Tree t,
WordNetConnection w,
HeadFinder hf)
CollocationFinder over the Tree t.
t - parse treew - whf - HeadFinder to use| Method Detail |
|---|
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||