Edit model card

reviewXLNet-large

This model is a fine-tuned version of xlnet-large-cased on a large dataset of mobile app reviews. The model is designed to understand and process text from mobile app reviews, providing enhanced performance for tasks such as feature extraction, sentiment analysis, and review summarization from app reviews.

Model Details

  • Model Architecture: XLNet (Generalized Autoregressive Pretraining for Language Understanding)
  • Base Model: xlnet-large-cased
  • Pre-training Extension: Mobile app reviews dataset
  • Language: English

Dataset

The extended pre-training was performed using a diverse dataset of mobile app reviews collected from various app stores. The dataset includes reviews of different lengths, sentiments, and topics, providing a robust foundation for understanding the nuances of mobile app user feedback.

Training Procedure

The model was fine-tuned using the following parameters:

  • Batch Size: 8
  • Learning Rate: 3e-5
  • Epochs: 1

Usage

Load the model

from transformers import XLNetTokenizer, XLNetForSequenceClassification

tokenizer = XLNetTokenizer.from_pretrained('quim-motger/reviewXLNet-large-cased')
model = XLNetForSequenceClassification.from_pretrained('quim-motger/reviewXLNet-large-cased')

Example: Sentiment Analysis

from transformers import pipeline

nlp = pipeline('sentiment-analysis', model=model, tokenizer=tokenizer)

review = "This app is fantastic! I love the user-friendly interface and features."
result = nlp(review)

print(result)
# Output: [{'label': 'POSITIVE', 'score': 0.98}]

Example: Review Summarization

from transformers import pipeline

summarizer = pipeline('summarization', model=model, tokenizer=tokenizer)

long_review = "I have been using this app for a while and it has significantly improved my productivity.
The range of features is excellent, and the user interface is intuitive. However, there are occasional
bugs that need fixing."
summary = summarizer(long_review, max_length=50, min_length=25, do_sample=False)

print(summary)
# Output: [{'summary_text': 'The app has significantly improved my productivity with its excellent features and intuitive user interface. However, occasional bugs need fixing.'}]
Downloads last month
7
Safetensors
Model size
360M params
Tensor type
F32
·
Inference Examples
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.

Collection including quim-motger/reviewXLNet-large