Package relations

Class Rules


  • public class Rules
    extends Object
    Author:
    Chinh
    • Constructor Detail

      • Rules

        public Rules​(int type,
                     String trg)
    • Method Detail

      • initMap

        public void initMap()
      • addPattern

        public void addPattern​(int verb_type,
                               String pos,
                               String ctype,
                               boolean pos1,
                               String pr1,
                               boolean inchunk,
                               int ccount,
                               String childTrg,
                               boolean add)
        For simple events
      • addPattern

        public void addPattern​(int verb_type,
                               String pos,
                               String ctype,
                               boolean pos1,
                               boolean pos2,
                               boolean order,
                               String pr1,
                               String pr2,
                               boolean has_theme2,
                               boolean inchunk,
                               int ccount1,
                               int ccount2,
                               String childTrg,
                               boolean add)
        Binding events
      • addPattern

        public void addPattern​(int verb_type,
                               String pos,
                               String ctype,
                               boolean pos1,
                               boolean pos2,
                               boolean order,
                               String pr1,
                               String pr2,
                               boolean has_theme2,
                               boolean inchunk,
                               int ccount1,
                               int ccount2,
                               boolean ev1,
                               boolean ev2,
                               String trg1,
                               String trg2,
                               boolean add)
        Regulatory events
      • getEvalRules

        public List<RuleData> getEvalRules​(String key)
        Get list of patterns
        Parameters:
        key - : POS + Chunk type
      • printInfo

        public void printInfo()