Text Classification
Transformers
Safetensors
English
bert
fill-mask
BERT
transformer
nlp
bert-lite
edge-ai
low-resource
micro-nlp
quantized
iot
wearable-ai
offline-assistant
intent-detection
real-time
smart-home
embedded-systems
command-classification
toy-robotics
voice-ai
eco-ai
english
lightweight
mobile-nlp
ner
on-device-nlp
privacy-first
cpu-inference
speech-intent
offline-nlp
tiny-bert
bert-variant
efficient-nlp
edge-ml
tiny-ml
aiot
embedded-nlp
low-latency
smart-devices
edge-inference
ml-on-microcontrollers
android-nlp
offline-chatbot
esp32-nlp
tflite-compatible
text-embeddings-inference
Update README.md
Browse files
README.md
CHANGED
|
@@ -72,11 +72,13 @@ What sets bert-lite apart is its ability to learn from minimal data while delive
|
|
| 72 |
|
| 73 |
## 🔤 Quick Demo: Contextual Magic
|
| 74 |
Here’s bert-lite in action with a simple masked language task:
|
|
|
|
| 75 |
```python
|
| 76 |
from transformers import pipeline
|
| 77 |
mlm = pipeline("fill-mask", model="boltuix/bert-lite")
|
| 78 |
result = mlm("The cat [MASK] on the mat.")
|
| 79 |
print(result[0]['sequence']) # ✨ "The cat sat on the mat."
|
|
|
|
| 80 |
```
|
| 81 |
---
|
| 82 |
|
|
@@ -140,7 +142,6 @@ for sentence in masked_sentences:
|
|
| 140 |
|
| 141 |
## 🔤 Masked Language Model (MLM)'s Output
|
| 142 |
```python
|
| 143 |
-
|
| 144 |
Input: The robot can [MASK] the room in minutes.
|
| 145 |
✨ → the robot can leave the room in minutes. (score: 0.1608)
|
| 146 |
✨ → the robot can enter the room in minutes. (score: 0.1067)
|
|
|
|
| 72 |
|
| 73 |
## 🔤 Quick Demo: Contextual Magic
|
| 74 |
Here’s bert-lite in action with a simple masked language task:
|
| 75 |
+
|
| 76 |
```python
|
| 77 |
from transformers import pipeline
|
| 78 |
mlm = pipeline("fill-mask", model="boltuix/bert-lite")
|
| 79 |
result = mlm("The cat [MASK] on the mat.")
|
| 80 |
print(result[0]['sequence']) # ✨ "The cat sat on the mat."
|
| 81 |
+
|
| 82 |
```
|
| 83 |
---
|
| 84 |
|
|
|
|
| 142 |
|
| 143 |
## 🔤 Masked Language Model (MLM)'s Output
|
| 144 |
```python
|
|
|
|
| 145 |
Input: The robot can [MASK] the room in minutes.
|
| 146 |
✨ → the robot can leave the room in minutes. (score: 0.1608)
|
| 147 |
✨ → the robot can enter the room in minutes. (score: 0.1067)
|