Skip to content

This python code uses Wikipedia's API and with help of that can give you a summarized version of any Wikipedia topic.

Notifications You must be signed in to change notification settings

rishabh7163/Wiki-Summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Introduction

This is a Python script that summarizes the Wikipedia page using the Sumy library. It uses the LexRank summarizer to generate summaries for each paragraph of the page.

Requirements

This script requires the following libraries to be installed:

  1. wikipedia
  2. sumy

You can install these libraries using pip.

For example:

  1. pip install wikipedia
  2. pip install sumy

Usage

To use this script, simply run the following command in your terminal:

python .py The script will fetch the Wikipedia page and generate a summary for each paragraph.

Parameters

The script uses the following parameters:

  1. summary_length: The length of the summary as a fraction of the original text. The default value is 0.3.
  2. similarity_threshold: The similarity threshold for sentence similarity. The default value is 0.1. You can adjust these parameters by editing the script.

About

This python code uses Wikipedia's API and with help of that can give you a summarized version of any Wikipedia topic.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages