Edit model card

Model Description

###This model is an extended implementation of T5 trained on 9000 press releases from https://www.africa-newsroom.com. The model is trained to summarize Press Headline when given the input as Press Body.

  • Developed by: Husain Limdiyawala
  • Finetuned from model [optional]: T5

Model Sources [optional]

Uses

https://github.com/Shivanandroy/simpleT5/blob/main/README.md

Convert paragraph into a 1 line summary.

How to Get Started with the Model

Use the code below to get started with the model.

import

from simplet5 import SimpleT5 import numpy as np import pandas as pd from sklearn.model_selection import train_test_split

instantiate

model = SimpleT5()

model.from_pretrained("t5","t5-base")

load trained T5 model

model.load_model("t5","APO-Group/PressModel/Press Model", use_gpu=False)

predict

predicted = model.predict("summarize: OAFLAD is an annual conference that brings together First Ladies from different African countries. This platform enables them to share their experiences and demonstrate their commitment to sustainable development, the promotion of women's and children's rights on the continent, youth development and the promotion of gender diversity. The distinguished First Ladies will contribute with their expertise and experience to the developing policies and projects aimed at improving the quality of life for the continent's populations, with a particular focus on the most vulnerable. For Vodacom Congo, this is an opportunity to consolidate its commitment in the DRC, but also that of the Vodacom Group at a pan-African level, in favor of inclusion for all. Through its Group, Vodacom Congo is taking part in a vast pan-African program called 'Africa.Connected', which aims to accelerate Africa's digital transformation through connectivity and access to Vodafone and Vodacom digital services and platforms.")

print(predicted)

Downloads last month
0
Inference Examples
Unable to determine this model's library. Check the docs .