Downloads · 30 days
6
18% of all-time downloads
yudiwbs/absa_elektronik_aspek_v2
absa_elektronik_aspek_v2 is a token classification model from yudiwbs. Use it when you need labels on individual words, such as names. It is set up for flair.
Downloads · 30 days
6
18% of all-time downloads
All-time downloads
33
Public
Repo size
74.3 MB
Likes
0
Public
Click a slice to open those files.
.bin74.3 MB · 100%
From the Hugging Face model README
Klasifikasi aspek dalam review laptop
Requires:
pip install flair)from flair.data import Sentence
from flair.models import SequenceTagger
# load tagger
tagger = SequenceTagger.load("yudiwbs/absa_elektronik_aspek_v2")
sentence = Sentence('Sesuai diskusi. Barang mulus walau ada hairline scratch di casing depan. Battery masih awet. Dapat bonus jg. Thanks gan.')
# predict
model.predict(sentence)
print(sentence.to_tagged_string())
# iterate over entities and print
for entity in sentence.get_spans('aspek'):
print(entity)