Giter VIP home page Giter VIP logo

nlp_project's Introduction

Wikipedia Text Summarizer and Analysis πŸ“š

This project is a Streamlit web application that extracts text from Wikipedia articles and provides summarization along with optional sentiment analysis and entity recognition.

Features

  • Extract text from Wikipedia articles by providing either a topic title or a Wikipedia page URL.
  • Customize analysis with options for sentiment analysis and entity recognition.
  • Display word cloud visualization of extracted text.
  • Summarize the extracted text.
  • Perform sentiment analysis on the extracted text (optional).
  • Recognize entities in the text (optional).

Usage

To run the application, make sure you have Python installed on your system along with the required dependencies listed in requirements.txt.

pip install -r requirements.txt
streamlit run app.py

or

CLICK ON ME TO PLAY WITH A REAL LIVE VERSION. πŸ˜Άβ€πŸŒ«οΈ

The application will launch in your default web browser. You can then go ahead and interact with it using the provided user interface.

Customization

The application offers customization options through the sidebar:

  • Choose an option: Select whether you want to enter a topic title or a Wikipedia page URL.
  • Customize Your Analysis: Toggle sentiment analysis and entity recognition options.

Text Summarization

The BART model powers the text summarization module fine-tuned for summarization tasks. The summarizer.py module contains the code for generating text summaries.

Utility Functions

The utils.py module contains utility functions used in the project:

  • write_word_cloud(text): Generates a word cloud visualization of the input text.
  • sentiment_report(text): Provides a sentiment analysis report for the input text.
  • get_entities(text): Recognizes entities in the input text.

Wikipedia Text Extraction

The wikipedia_extractor.py module contains functions for extracting text from Wikipedia articles.

Screenshots

  • GUI Interface: This screenshot shows the graphical user interface (GUI) of the application, where users can interact with the various features and functionalities.
  • Word Cloud Visualization: This screenshot displays the word cloud visualization generated from the extracted text, providing a visual representation of the most frequently occurring words.
  • Text Summary: This screenshot presents the summarized version of the extracted text, allowing users to quickly grasp the key points and main ideas.
  • Sentiment Analysis Report: This screenshot exhibits the sentiment analysis report generated for the extracted text, indicating the overall sentiment (positive, negative, or neutral) and providing insights into the polarity and subjectivity.
  • Named Entity Recognition (NER): This screenshot showcases the named entity recognition (NER) results, highlighting and categorizing entities such as persons, organizations, locations, etc., identified within the text.

Dependencies

Author

Moatasem Mohammed

nlp_project's People

Contributors

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