<｜begin▁of▁sentence｜>### Instruction:
Given the 'Les Miserables' social network graph which you can read from a GML file named 'lesmis.gml', can you use Louvain and Leiden community detection algorithms from cdlib to perform community detection and then calculate and print the Normalized Mutual Information (NMI) score between the two partitions obtained?
### Response:
import networkx as nx
from cdlib import algorithms, evaluation

# Load Les Miserables graph
G = nx.read_gml('lesmis.gml')

# Perform community detection using two different algorithms
louvain_communities = algorithms.louvain(G)
leiden_communities = algorithms.leiden(G)

# Calculate the Normalized Mutual Information between the two partitions
nmi_result = evaluation.normalized_mutual_information(louvain_communities, leiden_communities)

print(nmi_result.score)
<|EOT|>
