Upload README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# viet-robot-safety-filter
|
| 2 |
+
|
| 3 |
+
A rule-based safety filter for Vietnamese home-robot commands.
|
| 4 |
+
|
| 5 |
+
The model flags commands that contain obviously dangerous actions such as
|
| 6 |
+
burning, destroying objects, or harming people.
|
| 7 |
+
|
| 8 |
+
It returns a small dictionary:
|
| 9 |
+
|
| 10 |
+
```python
|
| 11 |
+
{"safe": True/False, "reason": "..."}
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
This is a simple demonstration and should be combined with stronger safety systems in real robots.
|
| 15 |
+
|
| 16 |
+
## Usage
|
| 17 |
+
|
| 18 |
+
```python
|
| 19 |
+
from model import check_safety
|
| 20 |
+
|
| 21 |
+
print(check_safety("Bật đèn phòng khách"))
|
| 22 |
+
print(check_safety("Đốt rèm cửa đi"))
|
| 23 |
+
```
|
| 24 |
+
|
| 25 |
+
## License
|
| 26 |
+
|
| 27 |
+
MIT
|