Giter Site home page Giter Site logo

text-summarizer's Introduction

Text-Summarizer

Open source Java based Text Summarizing Algorithm

This text summarizer is used in my Android app called "SumIt! Text Summarizer". I am continuously trying to improve the results I get from this algorithm/implementation. This is my own implementation. It is meant to support not just large pieces of text pasted/passed in, but also text from online URLs (that means removing and formatting text correctly).

Back when I first made this it really only supported just text. But now I am opening it up for those interested in taking a look. And for those who want to modify or improve it.

Here's how you can try it

Simply call the Summarize(String text, int maxSummarySize) method. Pass in your text, and pass in how many sentences you want your summary to be.

Here's how it works

  1. Start by recording raw frequencies of words within the text. Ideally, a Map works best for this.
  2. Next, any stopwords within the Map are filtered and removed; so as to reduce redundancy and keep only certain key phrases and words.
  3. After, sort the Map, from greatest word frequency to least.
  4. Then, get sentences from your original text, formatting and making sure any abbreviations and suffixes with a period or decimal are not counted as the ending of a sentence.
  5. Next, for text that is from online, we need to format and adjust it so that certain un-needed text is removed.
  6. Finally, obtain the summary by going through your list of sentences (from step 4) and then using your Map, compare and find the key phrases and words from each sentence. If found, add that sentence to the summary list.
  7. Once all done, return the summary as a String.

Link to the Android App: https://play.google.com/store/apps/details?id=com.karimo.sumit_final

alt text

text-summarizer's People

Contributors

karimo94 avatar

Watchers

 avatar  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.