Giter Club home page Giter Club logo

ranking-characters's Introduction

NLTKproj

This repository displays a python module I created with a friend that is intended to determine the characters in a book, rank them in order of most important to least important, and display the top 25 characters from the book in a network graph. Characters are represented by nodes, and edges represent characters that are associated with each other. We decided to pair nodes with each other when two characters appear together in the same sentence. Additionally, the size of the node is correlated with the ranking of the character. Thus, the bigger the node, the higher the rank of the character. The network graph illustrates how the most important characters have the most number of edges connected to them. Some characters have no edges connected to them, which suggests that they are less significant characters. Some graphs depict clusters of characters; this illustrates how some characters are associated together in groups in the given book.

The python module is in the file "FinalNLTKProj.py" and the file to test this is the file "testNLTKmodule.py." The text files included are books that can be used in the testNLTKmodule file to test the program. Additionally, I have included images of 3 different graph to demonstrate the character visualization.

ranking-characters's People

Contributors

christinaind avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.