public class RuleSets extends Object
| Constructor and Description |
|---|
RuleSets()
group0 : in-chunk -> PRO-TG | POS: NN/JJ
group1 : in-chunk + cause/theme2: PRO-TG PRO/EVT |POS: NN/JJ
group2 : TG prep PRO/EVT (theme) | POS: NN/JJ/VB (active)
group3 : TG prep PRO/EVT prep PRO/EVT |POS: NN/JJ/VB
group4 : PRO/EVT (theme) TG | POS: NN/VB (passive)(binding)
group5 : PRO/EVT (theme) (prep) TG (prep) PRO/EVT (cause) | POS: NN/VB(passive)
group6 : PRO/EVT (cause) (prep) TG (prep) PRO/EVT (theme) | POS: NN/VB(active)
group7 : PRO - PRO - TG
For NP chunk -> POS: NNx/JJ/VBx
With NNx -> possible group: G0,G1,G2,G3,G4,G5,G6,G7
-->Reg: G0,G1,G2(has prep or dist=0),G3, can skip G4,G6
-->Binding:G0,G1,G2(has prep or dist=0),G3, can skip G4, no G6
-->Simple:G0, G2
With JJ -> Possible group: G0,G1,G2, skip the other group
With VBx -> Possible group: G2,G4,G5,G6
-->Reg: G2, G3(by), G5 (by); can skip G4,G0,G1
For VP chunk -> POS:JJ/VBx
Possible group (Reg event): G2,G6 (active); G4,G5 (passive) ;
For binding, no distinction between passive and active
For simple event: G2 and G4
|
| Modifier and Type | Method and Description |
|---|---|
RuleSets |
createRule(List<RuleData> ls)
Split of pattern into defined group
|
double |
getBehindScore()
Score of event having theme behind TG ; for simple event only;
TODO: for other events need to take into account group 6
|
double |
getCauseScore()
Get score of an event having cause/theme2.
|
double |
getEvtCause(int idx)
Get score of an event having cause as an event
|
double |
getEvtScore(int idx)
Get score of an event having theme as an event
|
double |
getFrontScore()
Score of event having theme infront of TG
|
double |
getInchunkCause() |
double |
getInChunkEvtScore() |
double |
getProCause(int idx)
Get score of an event having cause as an pro
|
double |
getProScore(int idx)
Get score of an event having theme as an pro
|
boolean |
inChunk()
Check whether this pattern has inchunk form
|
boolean |
isSkipped()
Check whether to skip this pattern
|
boolean |
isSkipped(int type)
Check whether to skip this pattern
|
public RuleSets()
public RuleSets createRule(List<RuleData> ls)
ls: - list of patternpublic boolean isSkipped()
public boolean isSkipped(int type)
public boolean inChunk()
public double getInchunkCause()
public double getInChunkEvtScore()
public double getFrontScore()
public double getBehindScore()
public double getEvtScore(int idx)
idx: - group typepublic double getProScore(int idx)
idx: - group typepublic double getEvtCause(int idx)
idx: - group typepublic double getProCause(int idx)
idx: - group typepublic double getCauseScore()
idx: - group typeCopyright © 2016 JULIE Lab, Germany. All rights reserved.