A simple nlp based app to generate short summaries of long texts based on their importace
https://extractive-summarizer-h9du.onrender.com/
Install spacy
pip install spacy
Install Textrank
pip install pytextrank
Install Flask
pip install Flask
Install pipeline pakage "en_core_web_sm"
python -m spacy download en_core_web_sm
Client: HTML CSS
Server: Flask
ADD NLP WITH SPACY
nlp=spacy.load("en_core_web_sm")
ADD A PIPELINE TO SUPPLY TEXTS USING TEXTRANK
nlp.add_pipe('textrank')
USE SPACEY PIPELINE WITH TEXTRANK
doc=nlp(example text)
Iterate through each word and create summary using generator object:
for i in doc._.textrank.summary():
print(i)
Learnt about nlp models and their working