INNER CODE UNIT · Python
arg1_words
ElizaLo/NLP-Natural-Language-Processing · Shallow Discourse Parsing/PDTB_exploration/pdtb.py:170
def arg1_words(self, lemmatize=False):
"""
Returns the list of words associated with Arg1. lemmatize=True
uses nltk.stem.WordNetStemmer() on the list.
"""
return self.__words(self.arg1_pos, lemmatize=lemmatize)
def arg2_words(self, lemmatize=False):
"""
Returns the list of words associated with Arg2. lemmatize=True
uses nltk.stem.WordNetStemmer() on the list.
"""
return self.__words(self.arg2_pos, lemmatize=lemmatize)
def arg1_attribution_words(self, lemmatize=False):
"""
Returns the list of words associated with Arg1's attrbution
(if any). lemmatize=True uses nltk.stem.WordNetStemmer() on