Update README.md
Browse files
README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
---
|
2 |
tags:
|
3 |
-
- autotrain
|
4 |
- text-classification
|
5 |
language:
|
6 |
- en
|
7 |
widget:
|
8 |
-
- text:
|
9 |
datasets:
|
10 |
- Kaludi/autotrain-data-reviews-sentiment-analysis
|
11 |
co2_eq_emissions:
|
@@ -14,9 +13,7 @@ co2_eq_emissions:
|
|
14 |
|
15 |
# Reviews Sentiment Analysis
|
16 |
|
17 |
-
-
|
18 |
-
- Model ID: 3125888400
|
19 |
-
- CO2 Emissions (in grams): 24.7672
|
20 |
|
21 |
## Validation Metrics
|
22 |
|
@@ -32,7 +29,7 @@ co2_eq_emissions:
|
|
32 |
You can use cURL to access this model:
|
33 |
|
34 |
```
|
35 |
-
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I
|
36 |
```
|
37 |
|
38 |
Or Python API:
|
@@ -40,11 +37,11 @@ Or Python API:
|
|
40 |
```
|
41 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
42 |
|
43 |
-
model = AutoModelForSequenceClassification.from_pretrained("Kaludi/
|
44 |
|
45 |
-
tokenizer = AutoTokenizer.from_pretrained("Kaludi/
|
46 |
|
47 |
-
inputs = tokenizer("I
|
48 |
|
49 |
outputs = model(**inputs)
|
50 |
```
|
|
|
1 |
---
|
2 |
tags:
|
|
|
3 |
- text-classification
|
4 |
language:
|
5 |
- en
|
6 |
widget:
|
7 |
+
- text: I don't feel like you trust me to do my job.
|
8 |
datasets:
|
9 |
- Kaludi/autotrain-data-reviews-sentiment-analysis
|
10 |
co2_eq_emissions:
|
|
|
13 |
|
14 |
# Reviews Sentiment Analysis
|
15 |
|
16 |
+
A tool that analyzes the overall sentiment of customer reviews for a specific product or service, whether it’s positive or negative. This analysis is performed by using natural language processing algorithms and machine learning from the model ‘Reviews-Sentiment-Analysis’ trained by Kaludi, allowing businesses to gain valuable insights into customer satisfaction and improve their products and services accordingly.
|
|
|
|
|
17 |
|
18 |
## Validation Metrics
|
19 |
|
|
|
29 |
You can use cURL to access this model:
|
30 |
|
31 |
```
|
32 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I don't feel like you trust me to do my job."}' https://api-inference.huggingface.co/models/Kaludi/Reviews-Sentiment-Analysis
|
33 |
```
|
34 |
|
35 |
Or Python API:
|
|
|
37 |
```
|
38 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
39 |
|
40 |
+
model = AutoModelForSequenceClassification.from_pretrained("Kaludi/Reviews-Sentiment-Analysis", use_auth_token=True)
|
41 |
|
42 |
+
tokenizer = AutoTokenizer.from_pretrained("Kaludi/Reviews-Sentiment-Analysis", use_auth_token=True)
|
43 |
|
44 |
+
inputs = tokenizer("I don't feel like you trust me to do my job.", return_tensors="pt")
|
45 |
|
46 |
outputs = model(**inputs)
|
47 |
```
|