This project will create search engine bot on telegram using TF IDF and Cosine Similarity.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Make sure you have installed Python 3 on your device
- bot.py this file to serve get updates and send message from request
- config.cfg token telegram bot from Bot Father
- database.py define database structure with object oriented mapping
- search_engine.py custom library to get result of cosine similarity document
- server.py serve message and result from engine
- tensor_flow.py natural language processing for greeting response
- intents.json greeting or intents json data
- Scraping data from http://digilib.uad.ac.id/penelitian/Penelitian/index see on Scrapping.ipynb
- Update dataset
- Install requirement
pip install -r requirements.txt
- Install
punkt
withnltk.download()
>>> import nlit
>>> nltk.download("punkt")
- Run
server.py
python server.py
- Go to Telegram Application or access from Telegram Web, then chat with this bot.
- Python 3 - The language programming used
- Virtualenv - The virtual environment used
- SQL Alchemy - The database library
- NLTK - Natural Language Toolkit
- Tensor Flow - Tensor Flow
- Tf Learn - Tensor flow for learning
- Scikit Learn - Scikit Learn use Cosine Similarity
You can clone or download this project
> Clone : git clone https://github.com/piinalpin/research-references-bot.git
- Telegram Bot Chat : https://t.me/research_references_bot
- LINE Bot Chat : http://line.me/ti/p/@437nryhw