texttaglib/elan.py
def to_csv_rows(self) -> CSVTable:
        ''' Convert this ELANDoc into a CSV-friendly structure (i.e. list of list of strings) 
        
        :return: A list of list of strings
        :rtype: CSVTable
        '''
        rows = []
        for tier in self.tiers():
            for anno in tier.annotations:
                _from_ts = f"{anno.from_ts.sec:.3f}" if anno.from_ts else None
                _to_ts = f"{anno.to_ts.sec:.3f}" if anno.to_ts else None
                _duration = f"{anno.duration:.3f}" if anno.duration else None
                rows.append((tier.ID, tier.participant, _from_ts, _to_ts, _duration, anno.value))
        return rows
 Convert this ELANDoc into a CSV-friendly structure (i.e. list of list of strings) 
        
        :return: A list of list of strings
        :rtype: CSVTable
        
Convert this ELANDoc into a CSV-friendly structure
Convert this ELANDoc into a CSV - friendly structure
def to_csv_rows(self) -> CSVTable:
        rows = []
        for tier in self.tiers():
            for anno in tier.annotations:
                _from_ts = f"{anno.from_ts.sec:.3f}" if anno.from_ts else None
                _to_ts = f"{anno.to_ts.sec:.3f}" if anno.to_ts else None
                _duration = f"{anno.duration:.3f}" if anno.duration else None
                rows.append((tier.ID, tier.participant, _from_ts, _to_ts, _duration, anno.value))
        return rows
def to_csv_rows ( self ) -> CSVTable : rows = [ ] for tier in self . tiers ( ) : for anno in tier . annotations : _from_ts = f"{anno.from_ts.sec:.3f}" if anno . from_ts else None _to_ts = f"{anno.to_ts.sec:.3f}" if anno . to_ts else None _duration = f"{anno.duration:.3f}" if anno . duration else None rows . append ( ( tier . ID , tier . participant , _from_ts , _to_ts , _duration , anno . value ) ) return rows
Convert this ELANDoc into a CSV-friendly structure (i.e.
Convert this ELANDoc into a CSV - friendly structure ( i . e .
''' Convert this ELANDoc into a CSV-friendly structure (i.e. list of list of strings) 
        
        :return: A list of list of strings
        :rtype: CSVTable
        '''
A list of list of strings
A list of list of strings
CSVTable
self