https://github.com/nanith777/hotel_recommendation
This project implements a hotel recommendation system using Streamlit, a Python library for building interactive web applications.
https://github.com/nanith777/hotel_recommendation
machine-learning nlp python streamlit
Last synced: 2 months ago
JSON representation
This project implements a hotel recommendation system using Streamlit, a Python library for building interactive web applications.
- Host: GitHub
- URL: https://github.com/nanith777/hotel_recommendation
- Owner: NANITH777
- Created: 2024-06-08T17:18:31.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T18:07:13.000Z (almost 2 years ago)
- Last Synced: 2025-06-29T09:04:17.362Z (12 months ago)
- Topics: machine-learning, nlp, python, streamlit
- Language: Jupyter Notebook
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hotel Recommendation System
This project implements a hotel recommendation system using Streamlit, a Python library for building interactive web applications. The recommendation system analyzes hotel descriptions and suggests the most relevant hotels based on user input.
## Installation
1. Clone the repository to your local machine:
```bash
git clone https://github.com/NANITH777/Hotel_Recommendation.git
```
2. Navigate to the project directory:
```bash
cd hotel-recommendation-system
```
3. Install the required dependencies:
```bash
pip install -r requirements.txt
```
## Usage
1. Run the Streamlit application:
```bash
streamlit run hotel.py
```
2. Access the application in your web browser at [http://localhost:8502](http://localhost:8502).
3. Enter the location (e.g., Italy, UK, Netherlands) and a brief description of your trip (e.g., "I am going on a business trip").
4. Click the "Get Recommendations" button to view hotel recommendations based on your input.
5. To reset the input fields and recommendations, click the "Reset" button.
## Files
- `hotel.py`: Python script containing the Streamlit application code.
- `Hotel_Reviews.csv`: Dataset containing hotel reviews data.
- `README.md`: Documentation file providing instructions and information about the project.
- `Requirements.txt`: Requirements
## Libraries Used
- `nltk`: Natural Language Toolkit for text processing tasks such as tokenization and lemmatization.
- `pandas`: Data manipulation and analysis library for working with tabular data.
- `numpy`: Numerical computing library for handling arrays and mathematical operations.
- `streamlit`: Web application framework for creating interactive data apps.
## Functionality
- The application preprocesses hotel descriptions and calculates similarity scores based on user input.
- It recommends the top 10 hotels with the highest similarity scores and average ratings.
- Users can reset the input fields to start a new search.
# Interface with Streamlit