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)

# Load your hotel data into a DataFrame
df = pd.read_csv('hotels.csv')

# Define the search query
query = 'great location and service'

# Perform the semantic search
results = search.search(df, query)

# Print the top results
print(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 Distribution

traversaal-0.3.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

traversaal-0.3-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file traversaal-0.3.tar.gz.

File metadata

  • Download URL: traversaal-0.3.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for traversaal-0.3.tar.gz
Algorithm Hash digest
SHA256 07a60d803f42c1f5fd714a848d9d1c3f42976aa2757de8f9dc939434864734ae
MD5 3f7bcf9aa634311205ae9874dcb5d541
BLAKE2b-256 4537e256ad919b7b0d023730bdb1aa6e7375f13e84df148098a5f35cc0aa299b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: traversaal-0.3-py3-none-any.whl
  • Upload date:
  • Size: 1.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f90f290d42d2ad9ef0dab5f7a9a296ebd11c7bc1e18292c1ccc5132e68e41399
MD5 f014f20546d96b46cc7f28810b351b4f
BLAKE2b-256 8c01ba4d44802086271943bbd89673cf3e72fab15faa4c22b673a69072e49904

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