INNER CODE UNIT · Python

arg1_attribution_pos

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

    def arg1_attribution_pos(self, wn_format=False, lemmatize=False):
        """
        Returns the list of (word, pos) pairs associated with
        Arg1. lemmatize=True uses nltk.stem.WordNetStemmer() on the
        list. wn_format=True merely converts to WordNet tags where
        possible, without stemming.
        """
        return self.arg_attribution_pos(1, wn_format=wn_format, lemmatize=lemmatize)

    def arg2_attribution_pos(self, wn_format=False, lemmatize=False):
        """
        Returns the list of (word, pos) pairs associated with
        Arg2. lemmatize=True uses nltk.stem.WordNetStemmer() on the
        list. wn_format=True merely converts to WordNet tags where
        possible, without stemming.
        """
        return self.arg_attribution_pos(2, wn_format=wn_format, lemmatize=lemmatize)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…