ZakyF commited on
Commit
7a0def2
·
verified ·
1 Parent(s): b356b72

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +37 -3
README.md CHANGED
@@ -1,3 +1,37 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - ZakyF/PRDECT-ID
5
+ language:
6
+ - id
7
+ metrics:
8
+ - accuracy
9
+ pipeline_tag: text-classification
10
+ library_name: sklearn
11
+ tags:
12
+ - sentiment-analysis
13
+ - nlp
14
+ - naive-bayes
15
+ - e-commerce
16
+ - indonesian
17
+ ---
18
+ # Sentiment Analysis Tokopedia
19
+ Model SVM dan Naive Bayes untuk mengklasifikasikan ulasan Tokopedia ke dalam kategori Bagus, Normal, atau Buruk menggunakan PRDECT-ID Dataset.
20
+ ## Deskripsi
21
+ Model ini menganalisis ulasan pelanggan Tokopedia untuk menghasilkan insight seperti rekomendasi perbaikan pengiriman atau kualitas produk.
22
+ ## Penggunaan
23
+ ```python
24
+ import pickle
25
+ from sklearn.preprocessing import LabelEncoder, StandardScaler
26
+
27
+ # Load model dan preprocessing
28
+ svm_model = pickle.load(open('svm_model.pkl', 'rb'))
29
+ scaler = pickle.load(open('scaler.pkl', 'rb'))
30
+ le_sentiment = pickle.load(open('le_sentiment.pkl', 'rb'))
31
+ le_emotion = pickle.load(open('le_emotion.pkl', 'rb'))
32
+
33
+ # Contoh prediksi
34
+ data = [[5, 'Positive', 'Happy']] # Rating, Sentiment, Emotion
35
+ data_scaled = scaler.transform(data)
36
+ prediksi = svm_model.predict(data_scaled)
37
+ print(prediksi) # Output: ['Bagus']