Klasifikasi aspek dalam review laptop
Demo: How to use in Flair
Requires:
- Flair (
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)
- Downloads last month
- 1
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social
visibility and check back later, or deploy to Inference Endpoints (dedicated)
instead.