Text Classification
Transformers
Safetensors
English
bert
fill-mask
BERT
MNLI
NLI
transformer
pre-training
nlp
tiny-bert
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
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)
|