Downloads · 30 days
1.1K
14% of all-time downloads
amphora/KorFinASC-XLM-RoBERTa
KorFinASC-XLM-RoBERTa is a text classification model from amphora. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
Pretrained XLM-RoBERTA-Large transfered to the Finance domain on Korean Language. See paper for more details.
Downloads · 30 days
1.1K
14% of all-time downloads
All-time downloads
7.6K
Public
Repo size
4.5 GB
Likes
4
Public
Click a slice to open those files.
.bin2.2 GB · 99%
From the Hugging Face model README
Pretrained XLM-RoBERTA-Large transfered to the Finance domain on Korean Language.
See paper for more details.
KorFinASC-XLM-RoBERTa is extensively trained on multiple datasets including KorFin-ASC, Ko-FinSA, Ko-ABSA and ModuABSA.
>>> from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
>>> tokenizer = AutoTokenizer.from_pretrained("amphora/KorFinASC-XLM-RoBERTa")
>>> model = AutoModelForSequenceClassification.from_pretrained("amphora/KorFinASC-XLM-RoBERTa")
>>> input_str = "장 전체가 폭락한 가운데 삼성전자만 상승세를 이어갔다. </s> 삼성전자"
>>> input = tokenizer(input_str, return_tensors='pt')
>>> output = model.generate(**input, max_length=20)