INNER CODE UNIT · Python

arg2_attribution_words

ElizaLo/NLP-Natural-Language-Processing · Shallow Discourse Parsing/PDTB_exploration/pdtb.py:192

    def arg2_attribution_words(self, lemmatize=False):
        """
        Returns the list of words associated with Arg2's attrbution
        (if any). lemmatize=True uses nltk.stem.WordNetStemmer() on
        the list.
        """
        return self.__words(self.arg2_attribution_pos, lemmatize=lemmatize)

    def connective_words(self, lemmatize=False):
        """
        Returns the list of words associated with an Explicit or
        AltLex connective (else it always returns []). lemmatize=True
        uses nltk.stem.WordNetStemmer() on the list.
        """
        return self.__words(self.connective_pos, lemmatize=lemmatize)

    def sup1_words(self, lemmatize=False):
        return self.__words(self.sup1_pos, lemmatize=lemmatize)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…