GithubHelp home page GithubHelp logo

blester125 / text-rank Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 117 KB

Text Rank with Python

License: MIT License

Python 100.00%
text-rank natural-language-processing nlp graph summarization keyword-extraction

text-rank's Introduction

text-rank's People

Contributors

blester125 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

text-rank's Issues

Add unittests

The following things need to be unittested

  • Graph Building functions

  • Graph classes themselves

  • Text rank utilties

  • text rank

  • similarity functions

  • task utilities

Add documentation

There should be information in the read me about how text rank works and comments in the code about what part of the math each section is.

There should also be some comments about the differences between the delayed updates and updating as they go.

There should so be performance tables

Control the seed

We should be able to control the seed used to generate the initial ws for reproducibility

add pyproject.toml

we need a pyproject.toml to manage black configuration and to be future proof as the python packing community moves to it

Scipy sparse

Eventually we may need a SparseAdjacencyMatrix graph class to handle large graphs, the AdjacencyList might be enough to handle it though, it depends on speed.

This is low priority and should only be done when we find a graph we can't handle.

Add evaluation harness

Right now the results are just qualitative, I want to add an evaluation script that at least can be used for keyword extraction with F1. A more complex one for summarization (rouge, etc) would also be nice

Transistion Matrix

Look into storing the transistion scores for text rank instead of the denoms.

np.sum(adj / denom * ws, axis=0)

To

np.sum(trans * ws, axis=0)

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.