Class Match

    • Method Detail

      • setsPos

        public boolean setsPos()
        Checks if the Match element is used for setting the part of speech: setpos="yes" in XML.
        Returns:
        True if Match sets POS.
      • posRegExp

        public boolean posRegExp()
        Checks if the Match element uses regexp-based form of the POS tag.
        Returns:
        True if regexp is used in POS.
      • setLemmaString

        public void setLemmaString​(String lemmaString)
        Sets a base form (lemma) that will be formatted, or synthesized, using the specified POS regular expressions.
        Parameters:
        lemmaString - String that specifies the base form.
      • getLemma

        public String getLemma()
        Since:
        2.3
      • isStaticLemma

        public boolean isStaticLemma()
        Since:
        2.3
      • checksSpelling

        public boolean checksSpelling()
        Used to tell whether the Match class will spell-check the result so that misspelled suggestions are suppressed.
        Returns:
        True if this is so.
      • setTokenRef

        public void setTokenRef​(int i)
        Sets the token number referenced by the match.
        Parameters:
        i - Token number.
      • getTokenRef

        public int getTokenRef()
        Gets the token number referenced by the match.
        Returns:
        token number.
      • convertsCase

        public boolean convertsCase()
        Used to let LT know that it should change the case of the match.
        Returns:
        true if match converts the case of the token.
      • setInMessageOnly

        public void setInMessageOnly​(boolean inMessageOnly)
      • isInMessageOnly

        public boolean isInMessageOnly()
      • getPosTag

        public String getPosTag()
        Since:
        2.3
      • getRegexMatch

        public Pattern getRegexMatch()
        Since:
        2.3
      • getRegexReplace

        public String getRegexReplace()
        Since:
        2.3
      • getPosRegexMatch

        public Pattern getPosRegexMatch()
        Since:
        2.3
      • isPostagRegexp

        public boolean isPostagRegexp()
        Since:
        2.3
      • getPosTagReplace

        public String getPosTagReplace()
        Since:
        2.3