Maintained by HouseLearning
Browse files
README.md
CHANGED
|
@@ -1,3 +1,72 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ๐ค IntentSnap-AI
|
| 2 |
+
|
| 3 |
+
IntentSnap-AI is a Hugging Faceโpowered **intent classification model** designed to understand what a user wants from natural language input.
|
| 4 |
+
|
| 5 |
+
It turns plain text into structured intents for use in chatbots, assistants, apps, and automation systems.
|
| 6 |
+
|
| 7 |
+
#### Author: Alex Manochio
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## ๐ซ About HouseLearning
|
| 11 |
+
|
| 12 |
+
This project is created and maintained by **HouseLearning**.
|
| 13 |
+
|
| 14 |
+
- ๐ Website: https://www.houselearning.org
|
| 15 |
+
- ๐ Mission: Building accessible, practical tools for learning computer science, AI, and software development.
|
| 16 |
+
|
| 17 |
+
IntentSnap-AI is part of HouseLearningโs open-source efforts to make modern AI understandable and usable by students, educators, and developers.
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
## ๐ง What This Model Does
|
| 22 |
+
|
| 23 |
+
The model classifies text into predefined **intents**, such as:
|
| 24 |
+
|
| 25 |
+
- `open_settings`
|
| 26 |
+
- `shutdown`
|
| 27 |
+
- `restart`
|
| 28 |
+
- `play_music`
|
| 29 |
+
- `pause_music`
|
| 30 |
+
- `get_time`
|
| 31 |
+
- `open_browser`
|
| 32 |
+
|
| 33 |
+
Example:
|
| 34 |
+
|
| 35 |
+
Input: "Open the browser"
|
| 36 |
+
Output: open_browser
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
---
|
| 40 |
+
|
| 41 |
+
## ๐ Project Structure
|
| 42 |
+
|
| 43 |
+
```
|
| 44 |
+
intentsnap-ai/
|
| 45 |
+
โโโ data/
|
| 46 |
+
โ โโโ intents.csv
|
| 47 |
+
โโโ model/
|
| 48 |
+
โโโ train.py
|
| 49 |
+
โโโ predict.py
|
| 50 |
+
โโโ requirements.txt
|
| 51 |
+
โโโ README.md
|
| 52 |
+
```
|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## ๐ Getting Started
|
| 57 |
+
|
| 58 |
+
### Install dependencies
|
| 59 |
+
|
| 60 |
+
```bash
|
| 61 |
+
pip install -r requirements.txt
|
| 62 |
+
Train the model
|
| 63 |
+
python train.py
|
| 64 |
+
The trained model will be saved to the model/ directory.
|
| 65 |
+
|
| 66 |
+
๐ฎ Run Inference
|
| 67 |
+
python predict.py
|
| 68 |
+
Type a sentence and the model will predict the intent in real time.
|
| 69 |
+
|
| 70 |
+
๐งช Example Output
|
| 71 |
+
> Shut down the system
|
| 72 |
+
๐ฏ Intent: shutdown (0.98)
|