Package relations

Class RuleSets


  • public class RuleSets
    extends Object
    Dec 12, 2011
    Author:
    Chinh
    • Constructor Summary

      Constructors 
      Constructor 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
    • Constructor Detail

      • RuleSets

        public 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
    • Method Detail

      • createRule

        public RuleSets createRule​(List<RuleData> ls)
        Split of pattern into defined group
        Parameters:
        ls - : list of pattern
      • isSkipped

        public boolean isSkipped()
        Check whether to skip this pattern
        Returns:
      • isSkipped

        public boolean isSkipped​(int type)
        Check whether to skip this pattern
        Returns:
      • inChunk

        public boolean inChunk()
        Check whether this pattern has inchunk form
        Returns:
      • getInchunkCause

        public double getInchunkCause()
      • getInChunkEvtScore

        public double getInChunkEvtScore()
      • getFrontScore

        public double getFrontScore()
        Score of event having theme infront of TG
        Returns:
      • getBehindScore

        public double getBehindScore()
        Score of event having theme behind TG ; for simple event only; TODO: for other events need to take into account group 6
        Returns:
      • getEvtScore

        public double getEvtScore​(int idx)
        Get score of an event having theme as an event
        Parameters:
        idx - : group type
      • getProScore

        public double getProScore​(int idx)
        Get score of an event having theme as an pro
        Parameters:
        idx - : group type
      • getEvtCause

        public double getEvtCause​(int idx)
        Get score of an event having cause as an event
        Parameters:
        idx - : group type
      • getProCause

        public double getProCause​(int idx)
        Get score of an event having cause as an pro
        Parameters:
        idx - : group type
      • getCauseScore

        public double getCauseScore()
        Get score of an event having cause/theme2. This score does not take into account in-chunk cause
        Parameters:
        idx - : group type