Git Product home page Git Product logo

sar's Introduction



Website tweet

State-of-the-art Summarization methods for Hindi in 🤗

SAR (सार) in Hindi means summary. This repository contains my work on Hindi Text Summarization on news article.

Notebook:

Notebook Colab Kaggle
BaseLine Open In Colab Kaggle

DataSet:

  • As of now I've released a sample Dataset of 2k pairs of text and summary which can be accessed at Link

Models:

  • Inference results are on 2k sample data.
Model Checkpoint Rouge-2[f_score] Inference time
BART ai4bharat/IndicBART 21.48 20min 27s
T5 csebuetnlp/mT5_multilingual_XLSum 20.21 45min 54s

Project Pipeline

API

You can summarize any Hindi news article in just 5 lines of code

>>> import requests
>>> api_endpoint = "https://hf.space/embed/d0r1h/Hindi_News_Summarizer/+/api/predict/"
>>> news_url = "https://www.amarujala.com/uttar-pradesh/shamli/up-news-heroin-caught-in-shaheen-bagh-of-delhi-is-connection-to-kairana-and-muzaffarnagar?src=tlh\u0026position=3"
>>> r = requests.post(url= api_endpoint, 
                  json = {"data": [ news_url, "BART"]})
>>> r.json()['data'][0]
>>> यूपी शाहीन बाग में 100 करोड़ रुपये कीमत की हेरोइन और अन्य मादक पदार्थ की बरामदगी  उसे लाने अंतर्राष्ट्रीय ड्रग्स तस्करों के गिरोह के तार शामली जिले के कस्बा कैराना और मुजफ्फरनगर से जुड़ रहे हैंनारकोटिक्स कंट्रोल ब्यूरो एनसीबी दिल्ली की टीम ने गुरुवार को कैलाना से दो लोगों को हिरासत में

Inference Demo:

Application is hosted on 🤗 space and can be accessed at SAR

Website Supported

ToDO

  • Add support for following website
  • Foramtting Hindi text for wordcloud

sar's People

Contributors

d0r1h avatar

Watchers

 avatar  avatar

sar's Issues

Update in the summarizer to use IndicBART finetuned model

Hi Pawan,
Nice work in building the summarizer!
I am one of the developers behind IndicBART. I noticed that you use the IndicBART model as-is in https://huggingface.co/spaces/d0r1h/Hindi_News_Summarizer/blob/main/summarizer.py. However, IndicBART is a pretrained model which needs to be finetuned for summarization. We have released an IndicBART model finetuned on Indic languages of XLSum at https://huggingface.co/ai4bharat/IndicBART-XLSum. It will be great if you can make use of this model in your summarizer.

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.