Views
No views yet
bert-base-uncased 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.bert-base-uncased1from transformers import BertTokenizer, BertForSequenceClassification
2
3tokenizer = BertTokenizer.from_pretrained('quim-motger/reviewBERT-base')
4model = BertForSequenceClassification.from_pretrained('quim-motger/reviewBERT-base')1from transformers import pipeline
2
3nlp = pipeline('sentiment-analysis', model=model, tokenizer=tokenizer)
4
5review = "This app is fantastic! I love the user-friendly interface and features."
6result = nlp(review)
7
8print(result)
9# Output: [{'label': 'POSITIVE', 'score': 0.98}]1from transformers import pipeline
2
3summarizer = pipeline('summarization', model=model, tokenizer=tokenizer)
4
5long_review = "I have been using this app for a while and it has significantly improved my productivity.
6The range of features is excellent, and the user interface is intuitive. However, there are occasional
7bugs that need fixing."
8summary = summarizer(long_review, max_length=50, min_length=25, do_sample=False)
9
10print(summary)
11# Output: [{'summary_text': 'The app has significantly improved my productivity with its excellent features and intuitive user interface. However, occasional bugs need fixing.'}]