I scraped some data using beautifulsoup, and saved as .txt file. The data is movie reviews from IMDB.com I found a good word counting python code, so I could make a word frequency excel table. However, I could not draw graph just using frequency table.
I want to draw semantic network graph using UCINET (node size should be based on betweenness centrality.)
My question is how to make text file into adjacency matrix data to draw UCINET graph. like this http://www.umasocialmedia.com/socialnetworks/wp-content/uploads/2012/09/senatorsxsenators1.png I want to draw network graph using the words which is used from reviewers.
(calculate the frequency if two words came up in the same sentence, when they are matched row and column line)
Or. Could you tell me how to draw network graph (using betweenness Centrality) in Python Code??