Skip to main content

Provides functionality to generate headlines from articles using natural language processing techniques.

Project description

Headline Generation Package

This is a Python package for generating headlines from Articles.

Installation

You can install the package using pip:

pip install headline-gen

Usage

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)

Description

This package provides functionality to generate headlines from article text using natural language processing techniques.

Usage Instructions

  1. Import the ServerCntrl and Generate functions from the Control module.
  2. Start the server using ServerCntrl("Start"). This only needs to be done once.
  3. Generate headlines using the Generate function, passing the article text as an argument.
  4. Stop the server when done using ServerCntrl("Stop", Server).

New Release Features (v2.4) and Bug Fixes

  1. Fixed a corner case issue causing a ZeroDivisionError when processing irregular parameters for phrase extraction. The package now gracefully handles such scenarios without disrupting functionality.
  2. Renamed the function ServerInit to ServerCntrl for improved clarity and consistency within the codebase.
  3. Additionally, streamlined the dependency management by directly including en_core_web_sm in the downloader module.
  4. Output made more Comprehensive.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

headline-gen-2.4.tar.gz (6.3 kB view details)

Uploaded Source

File details

Details for the file headline-gen-2.4.tar.gz.

File metadata

  • Download URL: headline-gen-2.4.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for headline-gen-2.4.tar.gz
Algorithm Hash digest
SHA256 a755616c0f279d974304a1f1ea6bafc1f8170e06ad29a0f64a491ee1e1cab752
MD5 0db46b017ba3f1a1133ea877fa82761f
BLAKE2b-256 14ea31aef2ed0a625c17745a421df799f82d6fa0b1f2271cfcea8db80f204b7c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page