Rules-Based
Collection
2 items
•
Updated
•
1
Chatbot berbasis BM25 + TF-IDF untuk QA Bahasa Indonesia.
# Install dependencies
!pip install rank-bm25 scikit-learn huggingface-hub
# Download model
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(
repo_id="Lyon28/Caca-Chatbot",
filename="chatbot_caca.pkl"
)
# Load model
import pickle
with open(model_path, 'rb') as f:
data = pickle.load(f)
print(f"Loaded {len(data['qa_pairs'])} QA pairs!")
Created by Lyon28