SENTER adalah sebuah RESTful API yang berguna untuk menganalisa sebuah kalimat. Kalimat akan di kelompokan menjadi tiga kriteria, yaitu: postif, negatif, netral
Sebagai contoh menggunakan kalimat yang didapat dari twitter. Buat terlebih dahulu api pada halaman developer twitter https://apps.twitter.com. Registrasi aplikasi yang telah anda buat.
Setelah berhasil simpan Consumer Key
, Consumer Secret
, Api Key
, dan Api Secret Key
yang didapat tab Apps.
Kemudian isikan di file TwitterConfig.py
Dalam menggunakan RESTful API SENTER memerlukan beberapa library tambahan:
twython, pandas, matplotlib, numpy, keras, tensorflow, scikit-learn, nltk, networkx, plotly, pymyql
git clone https://github.com/Sarewes2310/SENTER.git
atau download zip via web- Isikan
Consumer Key
,Consumer Secret
,Api Key
, danApi Secret Key
pada TwitterConfig.py - Buat Database SQL, file database terdapat pada folder
DB/sentiment_analysis_twitter-2.sql
- Buat Model dengan cara run python file di folder
test/test_main_training.py
- Pastikan ada flask
- Enjoy
- langsung run file
template.py
- buka browser url :
127.0.0.1:5000
- JSON graf network
127.0.0.1:5000/api/1/network_all
- Get All Data berdasarkan pencaharian
127.0.0.1:5000/search