def parse_ccpem_collection(collection):
    """Parses the CCPEM collection.

    Args:
        collection (List[dict]): collection of conversations.

    Returns:
        List[Dict]: Text and segments parts of the collection.
    """
    return [[{
        'text': utterance['text'],
        'segments': utterance.get('segments', [])
    }
             for utterance in conversation['utterances']]
            for conversation in collection]