Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes #20: Added basic summarize functionality #66
Added a summarizer that uses gensim's TextRank Summarizer in python.
I included code that allows it to be called from the node.js framework just to test it and to make it easier for whoever wants to call the function.
It isn't good, but it's a starting point. I will continue working on a document summary model.
Let's not take on a python dependency if we don't need to. There are a few dozen text summarization modules on npm, let's try and use those.
Next, we can get rid of express here. We don't need a web server to do this, just a function interface. You can model your code on what @jatinAroraGit is doing in #46. Basically, we need to export an
Also, we should be able to include a test now that the Jest code is in place. You can either do that in this PR, or file another bug for someone to work on that adds one. The test should, at the least, call your function with some snippet of text, and expect to get back results of the form we'll expect at runtime.