GithubHelp home page GithubHelp logo

articlegeneratormodel's Introduction

articleGeneratorModel

About the model

Just provide an title to the model and it will generate a whole article about it (up to 1024 tokens).

Find the model on HuggingFace

How to try the model

# Install transformers library
!pip install transformers
# Load tokenizer and model
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, TFAutoModelForSeq2SeqLM
model_name = "Seungjun/articleGeneratorV1.0"
tokenizer = AutoTokenizer.from_pretrained("t5-small")
model = TFAutoModelForSeq2SeqLM.from_pretrained(model_name)
# Get the article for a given title
from transformers import pipeline
summarizer = pipeline("summarization", model=model, tokenizer=tokenizer, framework="tf")
summarizer(
    "Steve Jobs", # title
    min_length=500,
    max_length=1024,
)

Limitations

° As of now 99% of the context generated by the model is not true. ° Model is so slow, takes great amount of time(~ 3 minutes) to generate a one article.

How the model was created

° Fine-tuned t5-small model with a custom dataset uisng KerasNLP ° Created a custom dataset(csv file) using wikipedia articles to have 3 columns(id, prompt, articke) and about 19K rows. ° The prompt is the title of the article, and during the procedure it wa given as inout and trained to predict the article

Example of the training data

ID Prompt Article
7751246 Chesterfield Islands Chesterfield Islands (îles Chesterfield in French) are a group of uninhabited coral islands located in the Coral Sea, northeast of Australia. They are a territory of ....

Version Release

articlegeneratormodel's People

Contributors

seungjun-green avatar

Watchers

 avatar

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.