Skip to content

The project is a modified implementation of Text Rank algorithm to determine the main idea of a given text

Notifications You must be signed in to change notification settings

tappan-ajmera/Determining-Main-Idea-of-a-Given-Text

Repository files navigation

Finding the keywords in a given text

Authors: Tappan Ajmera (tpa7999@g.rit.edu) , Sanket Sheth(sas6792@g.rit.edu), Rohit Mudaliar(ram4498@g.rit.edu)

Pre-Requisite

To run this program following are the Pre-Requisite packages

  1. nltk
  2. scikitlearn
  3. numpy
  4. scipy
  5. networkx

Running the code

Once you have installed required packages, simply run the ExtractKeywords.py file

Input will be a text file containing passage in pure english. The program will output the Top 5 main words in the passage.

Example:

We have a file name Passage.txt whose content are as follows

Compatibility of systems of linear constraints over the set of natural numbers. Criteria of compatibility of a system of linear Diophantine equations, strict inequations, and nonstrict inequations are considered. Upper bounds for components of a minimal set of solutions and algorithms of construction of minimal generating sets of solutions for all types of systems are given. These criteria and the corresponding algorithms for constructing a minimal supporting set of solutions can be used in solving all the considered types systems and systems of mixed types.

Input: Please input a file name: Passage.txt

Output: Top words are:
linear diophantine equations
nonstrict inequations
strict inequations
natural numbers
linear constraints

About

The project is a modified implementation of Text Rank algorithm to determine the main idea of a given text

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages