Skip to main content

Travel Purpose Prediction Library

Project description

TravelPurpose: Travel Intent & Classification

TravelPurpose is a specialized library for analyzing travel data, predicting trip purposes (Business, Leisure, etc.) using AI, and tagging city destinations.

Installation

pip install travelpurpose

Example Usage & Verification

Code

import travelpurpose as tp
import pandas as pd

# Zero-Shot Classification Example
city_desc = "A bustling city known for its financial district and international conferences."
labels = ["Business", "Leisure", "Beach"]

prediction = tp.predict_purpose(city_desc, labels)
print(f"Input: {city_desc}")
print(f"Prediction: {prediction['label']} ({prediction['score']:.2f})")

Verified Output

Input: A bustling city known for its financial district and international conferences.
Prediction: Business (0.92)
✓ travelpurpose_01_analysis.png created (during tutorial run)

Features

  • City Tagging: Automate labeling of destinations.
  • Trip Analysis: Analyze duration, frequency, and seasonality.
  • AI Integration: Ready for Zero-Shot Classification models (BART/NLI).

License

MIT

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

travelpurpose-2.0.6.tar.gz (46.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

travelpurpose-2.0.6-py3-none-any.whl (63.2 kB view details)

Uploaded Python 3

File details

Details for the file travelpurpose-2.0.6.tar.gz.

File metadata

  • Download URL: travelpurpose-2.0.6.tar.gz
  • Upload date:
  • Size: 46.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for travelpurpose-2.0.6.tar.gz
Algorithm Hash digest
SHA256 c8ab9317f1ecd25294083ca8ad663ff8e890025cdc8cc9c2dd8ed21095479bcc
MD5 ec1f85adeac8fddd4811acced0bb984e
BLAKE2b-256 418c5d7c87dcfeb2df963bd063c7c4a2ab9fcd1584c76f24ec84d472fc57d6ae

See more details on using hashes here.

File details

Details for the file travelpurpose-2.0.6-py3-none-any.whl.

File metadata

  • Download URL: travelpurpose-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 63.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for travelpurpose-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1899d2b74a01c5e275712b22eceda7fda014857eab1a086080966ce575a346a8
MD5 07fe01a96201b29587b762497e9bd537
BLAKE2b-256 a8d95fe561ac60f096e511a6344f7b6773351955d5b964b5881f74cbfb1c44e7

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