textrank This code was inspired by Alex Kessinger's (http://github.com/voidfiles) textrank.py code. It is base on this paper: http://acl.ldc.upenn.edu/acl2004/emnlp/pdf/Mihalcea.pdf Collapsing keywords step was added here.