<｜begin▁of▁sentence｜>### Instruction:
Given the American College football network data in a GML file named football.gml, can you use both Louvain and Leiden methods in cdlib to perform community detection and compare their partitions using the Normalized Mutual Information metric? You need to print out the NMI score to evaluate the similarity between the two community detection results.
### Response:
import networkx as nx
from cdlib import algorithms, evaluation

# Load the American college football network
G = nx.read_gml('football.gml')

# Detect communities using two different algorithms
louvain_communities = algorithms.louvain(G)
leiden_communities = algorithms.leiden(G)

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

print(nmi_result.score)
<|EOT|>
