jarvisx17/chABSA
Viewer • Updated • 2.81k • 22
How to use jarvisx17/japanese-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="jarvisx17/japanese-sentiment-analysis") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jarvisx17/japanese-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("jarvisx17/japanese-sentiment-analysis", device_map="auto")This model was trained from scratch on the chABSA dataset. It achieves the following results on the evaluation set:
Model Train for Japanese sentence sentiments.
The model was trained on chABSA Japanese dataset. DATASET link : https://www.kaggle.com/datasets/takahirokubo0/chabsa
The following hyperparameters were used during training:
You can use cURL to access this model:
Python API:
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("jarvisx17/japanese-sentiment-analysis")
model = AutoModelForSequenceClassification.from_pretrained("jarvisx17/japanese-sentiment-analysis")
inputs = tokenizer("I love AutoNLP", return_tensors="pt")
outputs = model(**inputs)