<｜begin▁of▁sentence｜>### Instruction:
Given the Word adjacencies graph which you can read from a GML file named adjnoun.gml, can you use the surprise_communities function in cdlib to perform community detection? And can you compute the surprise quality function of the detected communities?
### Response:
import networkx as nx
from cdlib import algorithms

G = nx.read_gml('adjnoun.gml')
coms = algorithms.surprise_communities(G)

surprise = coms.surprise()
print(surprise)
<|EOT|>
