INNER CODE UNIT · Python

tertiary_semclass1

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

    def tertiary_semclass1(self):
        """
        ConnHeadSemClass1 has fields separated by dots. This function
        returns the third (as a str) if there is one, else None.

        Values (except None):

        Chosen alternative, Conjunctive, Contra-expectation,
        Disjunctive, Equivalence, Expectation, Factual past, Factual
        present, General, Generalization, Hypothetical, Implicit
        assertion, Justification, Juxtaposition, NONE, Opposition,
        Precedence, Reason, Relevance, Result,Specification,
        Succession, Unreal past, Unreal present
        """
        vals = self.semclass1_values()
        if len(vals) >= 3:
            return vals[2]
        else:            

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…