stevillis commited on
Commit
0921f40
·
verified ·
1 Parent(s): f98aa67

docs: add instructions for running the model from transformers lib

Browse files
Files changed (1) hide show
  1. README.md +16 -4
README.md CHANGED
@@ -32,10 +32,22 @@ widget:
32
  score: 0.9998
33
  ---
34
 
35
- ## Model Instructions
36
 
37
- For more information, follow the [Hugging Face Spaces](https://huggingface.co/spaces/stevillis/bertimbau-finetuned-glassdoor-reviews/blob/main/README.md).
 
 
38
 
39
- ## Model Preview
 
40
 
41
- Try the [Streamlit App](https://huggingface.co/spaces/stevillis/bertimbau-finetuned-glassdoor-reviews) to test the model.
 
 
 
 
 
 
 
 
 
 
32
  score: 0.9998
33
  ---
34
 
35
+ # BERTimbau for Sentiment Analysis of Glassdoor Reviews
36
 
37
+ ## Introduction
38
+ This model fine-tunes [neuralmind/bert-base-portuguese-cased](https://huggingface.co/neuralmind/bert-base-portuguese-cased)
39
+ for sentiment analysis of Glassdoor reviews about IT companies in Cuiabá.
40
 
41
+ ## Dataset Information
42
+ The dataset used to train the model consists of 2,532 reviews sourced from Glassdoor.
43
 
44
+ ### Example Usage
45
+ ```python
46
+ from transformers import pipeline
47
+
48
+ pipe = pipeline("text-classification", model="stevillis/bertimbau-finetuned-glassdoor-reviews")
49
+
50
+ result = pipe("Empresa boa para trabalhar")
51
+
52
+ print(result) # Expected output: [{'label': 'positive', 'score': 0.9993522763252258}]
53
+ ```