Downloads · 30 days
0
venkatchoudharyala/headline-gen
headline-gen is a machine learning model from venkatchoudharyala. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a Python package for generating headlines from Articles.
Downloads · 30 days
0
Access
Public
Updated Apr 14, 2024
Repo size
25 KB
Likes
0
Public
Click a slice to open those files.
.py26.8 KB · 33%
From the Hugging Face model README
This is a Python package for generating headlines from Articles.
You can install the package using pip:
pip install headline-gen
from headline_gen.Control import ServerCntrl, Generate
# Run this once to start the server
Server = ServerCntrl("Start")
# Generate headline from article text
headline = Generate("Your article text goes here...", Server)
print(headline)
# Stop the server when done
ServerCntrl("Stop", Server)
This package provides functionality to generate headlines from article text using natural language processing techniques.
ServerCntrl and Generate functions from the Control module.ServerCntrl("Start"). This only needs to be done once.Generate function, passing the article text as an argument.ServerCntrl("Stop", Server).ServerInit to ServerCntrl for improved clarity and consistency within the codebase.en_core_web_sm in the downloader module.