public class CollinsHeadFinder extends HeadFinderBase
HeadFinderBase with Collins's
rules (Collins, 1999)HeadFinderBase.HeadSearchDirection| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,List<Pair<HeadFinderBase.HeadSearchDirection,String[]>>> |
headFinderInformation |
static CollinsHeadFinder |
instance |
defaultRule| Constructor and Description |
|---|
CollinsHeadFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
fixHeadChildHacks(int headChildId,
Constituent tree) |
static CollinsHeadFinder |
getInstance() |
List<Pair<HeadFinderBase.HeadSearchDirection,String[]>> |
getNonterminalHeadInformation(String nonTerminal)
Return information about how the head is to be computed, given the non-terminal.
|
findHead, getChildLabel, getHeadChild, getHeadWord, getHeadWordPosition, getPredefinedHeadpublic static CollinsHeadFinder instance
public static CollinsHeadFinder getInstance()
public List<Pair<HeadFinderBase.HeadSearchDirection,String[]>> getNonterminalHeadInformation(String nonTerminal)
HeadFinderBaseNOTE: If no rule is specified, return null.
getNonterminalHeadInformation in class HeadFinderBaseprotected int fixHeadChildHacks(int headChildId,
Constituent tree)
fixHeadChildHacks in class HeadFinderBaseCopyright © 2017. All rights reserved.