Reference Research Bot
This project will create search engine bot on telegram using TF IDF and Cosine Similarity.
Getting Started
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.
Prerequisites
Make sure you have installed Python 3 on your device
File Structure
- 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
Step for get dataset
- Scraping data from http://digilib.uad.ac.id/penelitian/Penelitian/index see on Scrapping.ipynb
- Update dataset
How To Run
- Install requirement
pip install -r requirements.txt
- Install
punkt with nltk.download()
>>> import nlit
>>> nltk.download("punkt")
- Run
server.py
- Go to Telegram Application or access from Telegram Web, then chat with this bot.
Built With
- 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
Clone or Download
You can clone or download this project
> Clone : git clone https://github.com/piinalpin/research-references-bot.git
Chat His
- Telegram Bot Chat : https://t.me/research_references_bot
- LINE Bot Chat : http://line.me/ti/p/@437nryhw
Authors
-
Alvinditya Saputra - LinkedIn Instagram Twitter