|
|||||||||
| 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. It can restructure collocations as single words, where the original words are joined by underscores. You can test performance by using the "collocations" option to the TreePrint class.
| 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. |
|
CollocationFinder(Tree t,
WordNetConnection w,
HeadFinder hf,
boolean threadSafe)
Construct a new CollocationFinder over the Tree t. |
|
| Method Summary | |
|---|---|
Tree |
getMangledTree()
Returns the "collocations included" parse tree. |
void |
PrintCollocationStrings(java.io.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 - wordnet connectionhf - HeadFinder to use
public 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.| Method Detail |
|---|
public 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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||