Skip to main content

A semantic search package for hotel data

Project description

Traversaal

Traversaal is a Python package that provides a simple semantic search functionality for hotel data. It leverages large language models such as BERT to encode hotel descriptions and reviews, allowing users to perform semantic search queries and retrieve relevant results based on the provided search query.

Features

  • Efficient semantic search for hotel data based on descriptions and reviews.
  • Utilizes state-of-the-art language models to encode and compare text embeddings.
  • Returns relevant search results with corresponding scores for ranking.
  • Supports GPU acceleration for faster encoding and search performance.

Installation

You can install Traversaal using pip:

pip install traversaal

import pandas as pd
import traversaal

model_name = 'bert-base-uncased'
search = traversaal.SemanticSearch(model_name)

df = pd.read_csv('hotels.csv')
encoded_data = search.encode_data(df)
query = 'great location and service'

relevant_results = search.search(encoded_data, query)

print("\nRelevant Results:")
print(relevant_results.head())


For more detailed usage examples and API documentation, please refer to the GitHub repository.

Contributing
Contributions to Traversaal are welcome! If you encounter any issues, have suggestions, or would like to contribute enhancements or new features, please feel free to submit a pull request on the GitHub repository.

License
Traversaal is licensed under the MIT License. See the LICENSE file for more details.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

traversaal-0.6970-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file traversaal-0.6970-py3-none-any.whl.

File metadata

  • Download URL: traversaal-0.6970-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for traversaal-0.6970-py3-none-any.whl
Algorithm Hash digest
SHA256 a1095ce8c999b9a2777f82d0ba831b4cbfe6e0713f16eb84f6234b23869f6dcb
MD5 d880f8f2c536c1f6b96dde0506b504da
BLAKE2b-256 990f4d50a9f5230f3c60a666d54b06ecfb9387cae460b8d1ab7916be6c950c93

See more details on using hashes here.

Supported by

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