@classmethod
def from_json(cls, data):
    graph = node_link_graph(data[PYANNOTE_JSON_TRANSCRIPTION])
    mapping = {node: T(node) for node in graph}
    graph = nx.relabel_nodes(graph, mapping)
    return cls(graph=graph, **graph.graph)
@classmethod
def from_json(cls, data):
    graph = node_link_graph(data[PYANNOTE_JSON_TRANSCRIPTION])
    mapping = {node: T(node) for node in graph}
    graph = nx.relabel_nodes(graph, mapping)
    return cls(graph=graph, **graph.graph)