Package relations

Class KeyData

    • Field Detail

      • score

        public double score
      • required

        public boolean required
      • escore

        public double escore
      • cscore

        public double cscore
      • t2score

        public double t2score
      • init

        public boolean init
    • Constructor Detail

      • KeyData

        public KeyData​(String word,
                       String tgtype,
                       int fq,
                       int ktype,
                       int total)
    • Method Detail

      • getDefault

        public KeyData getDefault()
        Get default event type (ignoring modifiers) In this case, use the highest frequency as default type
        Returns:
      • initData

        public void initData​(String l1,
                             String l2)
      • addToMap

        public void addToMap​(KeyData dt)
        Add shared/mix trigger to map
        Parameters:
        dt - : keydata
      • getMap

        public Map<String,​KeyData> getMap()
        get list of shared /mix trigger -> which has the same key
        Returns:
      • getKeyData

        public KeyData getKeyData​(String etype)
        get KeyData for shared and mixed trigger
        Parameters:
        type - : event type
      • setModifiers

        public void setModifiers​(String[] ls)
        Set modifers for this trigger
        Parameters:
        ls -
      • set2String

        public String set2String​(Set<String> map)
        Convert a map into string separeted by commar.
        Parameters:
        map -
        Returns:
      • getType

        public String getType​(List<Word> tokens)
        Determine event type based on a given list of modifiers
        Parameters:
        tokens - : modifiers