naf2conll/naf2conll/naf_readers.py
def extract_coref_sets(cls, nafobj):
        """
        Extract coreference sets.

        A coreference set is a list of spans referring to the same thing
        A span is a list of word IDs
        """
        # Return an iterator of [ [word ID, word Id, ...], ...]
        return (
            # One reference "set" is a list of spans
            [
                # One span is a list of word IDs
                list(cls.token_ids_from_term_ids(
                    refspan.get_span_ids(),
                    nafobj
                ))
                for refspan in ref.get_spans()
            ]
            for ref in nafobj.get_corefs()
        )

        Extract coreference sets.

        A coreference set is a list of spans referring to the same thing
        A span is a list of word IDs
        
Extract coreference sets.
A coreference set is a list of spans referring to the same thing
A span is a list of word IDs
Extract coreference sets . A coreference set is a list of spans referring to the same thing A span is a list of word IDs
def extract_coref_sets(cls, nafobj):
        return (
            [
                list(cls.token_ids_from_term_ids(
                    refspan.get_span_ids(),
                    nafobj
                ))
                for refspan in ref.get_spans()
            ]
            for ref in nafobj.get_corefs()
        )
def extract_coref_sets ( cls , nafobj ) : return ( [ list ( cls . token_ids_from_term_ids ( refspan . get_span_ids ( ) , nafobj ) ) for refspan in ref . get_spans ( ) ] for ref in nafobj . get_corefs ( ) )
Extract coreference sets.
Extract coreference sets .
"""
        Extract coreference sets.

        A coreference set is a list of spans referring to the same thing
        A span is a list of word IDs
        """ # Return an iterator of [ [word ID, word Id, ...], ...] # One reference "set" is a list of spans # One span is a list of word IDs
cls
nafobj