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, getPredefinedHead
public static CollinsHeadFinder instance
public static CollinsHeadFinder getInstance()
public List<Pair<HeadFinderBase.HeadSearchDirection,String[]>> getNonterminalHeadInformation(String nonTerminal)
HeadFinderBase
NOTE: If no rule is specified, return null.
getNonterminalHeadInformation
in class HeadFinderBase
protected int fixHeadChildHacks(int headChildId, Constituent tree)
fixHeadChildHacks
in class HeadFinderBase
Copyright © 2017. All rights reserved.