Update README.md
Browse files
README.md
CHANGED
@@ -72,7 +72,22 @@ The model is built using the TensorFlow and Keras libraries and employs the foll
|
|
72 |
To use the model, ensure you have the required libraries installed. You can install them using pip:
|
73 |
|
74 |
```bash
|
75 |
-
pip install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
```
|
77 |
|
78 |
### Data Cleaning
|
|
|
72 |
To use the model, ensure you have the required libraries installed. You can install them using pip:
|
73 |
|
74 |
```bash
|
75 |
+
pip install transformers
|
76 |
+
```
|
77 |
+
|
78 |
+
```python
|
79 |
+
# Load model directly
|
80 |
+
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
81 |
+
|
82 |
+
tokenizer = AutoTokenizer.from_pretrained("Rendika/tweets-election-classification")
|
83 |
+
model = AutoModelForSequenceClassification.from_pretrained("Rendika/tweets-election-classification")
|
84 |
+
```
|
85 |
+
|
86 |
+
```python
|
87 |
+
# Use a pipeline as a high-level helper
|
88 |
+
from transformers import pipeline
|
89 |
+
|
90 |
+
pipe = pipeline("text-classification", model="Rendika/tweets-election-classification")
|
91 |
```
|
92 |
|
93 |
### Data Cleaning
|