Downloads · 30 days
4K
2% of all-time downloads
thanathorn/mt5-cpe-kmutt-thai-sentence-sum
mt5-cpe-kmutt-thai-sentence-sum is a summarization model from thanathorn. Use it when you need a shorter version of a longer text. It is set up for transformers.
This repository contains the finetuned mT5-base model for Thai sentence summarization. The architecture of the model is based on mT5 model and fine-tuned on text-summarization pairs in Thai. Also, this project is a Se…
Downloads · 30 days
4K
2% of all-time downloads
All-time downloads
224K
Public
Repo size
7 GB
Likes
8
Public
Click a slice to open those files.
.bin2.3 GB · 100%
From the Hugging Face model README
This repository contains the finetuned mT5-base model for Thai sentence summarization. The architecture of the model is based on mT5 model and fine-tuned on text-summarization pairs in Thai. Also, this project is a Senior Project of Computer Engineering Student at King Mongkut’s University of Technology Thonburi.
from simpletransformers.t5 import T5Model, T5Args
from torch import cuda
model = T5Model("t5", "thanathorn/mt5-cpe-kmutt-thai-sentence-sum", use_cuda=cuda.is_available())
sentence = "simplify: ถ้าพูดถึงขนมหวานในตำนานที่ชื่นใจที่สุดแล้วละก็ต้องไม่พ้น น้ำแข็งใส แน่เพราะว่าเป็นอะไรที่ชื่นใจสุด"
prediction = model.predict([sentence])
print(prediction[0])
(See the example on <a href="https://colab.research.google.com/drive/1XiNkZLgy1USwHYFVf_nEzOSWbHGSnYdg?usp=sharing">Google Colab</a>)