Chanakya AI Intelligent Solutions for a Smarter Future

Post-recommendation-system

This project is an NLP-based intelligent post recommendation system built with Python, Streamlit, spaCy, TF-IDF, cosine similarity, and SQLite database.

Language: Python

Stars: 0

Forks: 0

Watchers: 0

View on GitHub

README

🧐 Intelligent Post Recommendation System

This project is an NLP-based intelligent post recommendation system built with Python, Streamlit, spaCy, TF-IDF, cosine similarity, and SQLite database.

It allows users to add posts, fetch similar posts based on a query, and view all posts in the database.


🚀 Features


🛠️ Technologies Used


📆 Installation

First, clone the repository or copy the code files:

bash git clone https://github.com/nabeel03103n/Post-recommendation-system.git cd post-recommendation-system

Install the required dependencies:

bash pip install streamlit spacy scikit-learn pandas python -m spacy download en_core_web_sm


📂 Project Structure

post-recommendation-system/ ├── app.py # Main Streamlit app ├── seed_posts.py # (Optional) Script to populate database with 1000+ posts ├── posts.db # SQLite database file (auto-created) └── README.md # Project documentation


⚡ Running the Application

  1. Start the Streamlit server:

bash streamlit run app.py

  1. It will open automatically in your browser at: http://localhost:8501

📝 Usage

If you want to preload 1000+ sample posts:

bash python seed_posts.py

Then refresh your app.


🧀 Example Queries


🌟 Future Improvements (Ideas)


🤝 Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


📄 License

This project is licensed under the MIT License.


Built with ❤️ using Python and Streamlit.