Skip to content
This repository has been archived by the owner on Jul 8, 2019. It is now read-only.
/ Articleate Public archive

Articleate is an Android application that performs text analysis and extraction on internet news articles.

License

Notifications You must be signed in to change notification settings

J0Nreynolds/Articleate

Repository files navigation

Articleate

Built for Capital One's MindSumo challenge and competitive entrance to Capital One's annual SE Summit. Articleate is an Android application that performs text analysis and extraction on internet news articles. The .APK file is available under the name articleate.apk in the repository.

Table of Contents

Dependencies

The application's functionality depends on JSoup, Apache OpenNLP, and JGraphT. Additionally, the application depends on AndroidSlidingUpPanel and android-flowlayout for Android UI elements. All of these dependencies can be obtained through Maven in Android Studio.

About the application

The following information about articles is provided by Articleate:

  • One sentence summary
  • Keywords of the article
  • Author information
  • Keyword-based definitions, information, and related articles

TextRank implementation

Articleate is able to extract key sentences and words in articles through an NLP algorithm known as TextRank. TextRank is a graph-based algorithm derived from Larry Page’s and Sergey Brin’s PageRank algorithm, originally used in determining order of pages in Google searches.

To perform TextRank, Articleate depends on JGraphT and Apache OpenNLP. JGraphT is used to represent the various graphs used in text extraction, while OpenNLP provides a simple means of sentence separation and text tokenization. The original TextRank paper can be read here, and my Java TextRank implementation for this project is available here. In order to optimize the algorithm, stoplists are used to remove common English-language tokens, greatly reducing the number of vertices in keyword extraction and the number of similarities in sentence extraction.

Benefits:

Using TextRank as a means of article summarization in-app requires no web API calls and runs very quickly.

Own article extraction methods

Before the TextRank algorithm is run on text, it has to be extracted from webpages first. In order to extract web page text, I used JSoup, an HTML parsing library. After looking at the general HTML structure and patterns on major news websites, I developed a series of methods for extracting author information and article text content without unneeded textual elements.

After extracting the desired text from an article, the text is passed through my TextRank implementation, where keyword and sentence rankings are performed. Then, the top sentence, top 8 keywords, and author information of the article are displayed to the user.

Benefits:

Again, all processing is done in-app, and targeting general web-article patterns allows the article extraction methods to work on nearly all articles on the web. See the Results section for a listing of successfully tested news sources.

Cached summaries

Once summaries are successfully created, they are cached. Articleate will cache your 20 most-recent article summarizations, which are shown on the MainActivity of the app. Besides the summary, the title, author, and url of the article is cached and available in the MainActivity.

Benefits:

Users can re-read past summarizations at any time (even if the application was closed), allowing them to continue researching a certain issue or to recall their earlier readings. If they want to re-read the full article, all they need to do is touch the summary, and the summarization view will open with the full article webpage for reading.

Researching articles further

Touching a keyword gives you multiple options for further research:

  • Google News
  • Google News will show relevant, recent news articles that focus on the same keyword.
  • Google
  • Google provides general information (definitions, information, articles, etc.) on the keyword.
  • Wikipedia
  • Wikipedia provides detailed descriptions, history, and sources related to the keyword.
  • IMDb
  • IMDb provides information about celebrity or movie related keywords.

Intent filters for popular news sources

Articleate has incorporated intent filters for the following news sources' websites:

  • CNN
  • The New York Times
  • The Washington Post
  • The Huffington Post
  • The Guardian
  • Reuters
Benefits:

In specific, I've examined the URL patterns for each of the above news sources, tailoring the intent filters to those URL patterns. Therefore, the intent filters are only triggered when navigating to an article on the website, not on pages like the homepage, about page, etc.

Results

Articleate has been tested on the following news sources (allow a checkmark to represent successful summarizations):

  • CNN
  • The Huffington Post
  • The New York Times
  • Wired
  • IGN
  • The Guardian
  • The Washington Post
  • Reuters
  • Yahoo

Note: (JSoup is unable to correctly load Yahoo articles. This may be due to JavaScript loading mechanisms on the pages)

Below are examples of summaries on some of the above news sources. These are summaries from CNN, The Huffington Post, The New York Times, Wired, IGN, and The Washington Post, respectively.

About

Articleate is an Android application that performs text analysis and extraction on internet news articles.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages