Text Classification
Transformers
Safetensors
English
bert
multi-text-classification
classification
intent-classification
intent-detection
nlp
natural-language-processing
edge-ai
iot
smart-home
location-intelligence
voice-assistant
conversational-ai
real-time
boltuix
neurobert
local-search
business-category-classification
fast-inference
lightweight-model
on-device-nlp
offline-nlp
mobile-ai
multilingual-nlp
intent-routing
category-detection
query-understanding
artificial-intelligence
assistant-ai
smart-cities
customer-support
productivity-tools
contextual-ai
semantic-search
user-intent
microservices
smart-query-routing
industry-application
aiops
domain-specific-nlp
location-aware-ai
intelligent-routing
edge-nlp
smart-query-classifier
zero-shot-classification
smart-search
location-awareness
contextual-intelligence
geolocation
query-classification
multilingual-intent
chatbot-nlp
enterprise-ai
sdk-integration
api-ready
developer-tools
real-world-ai
geo-intelligence
embedded-ai
smart-routing
voice-interface
smart-devices
contextual-routing
fast-nlp
data-driven-ai
inference-optimization
digital-assistants
neural-nlp
ai-automation
lightweight-transformers
Update README.md
Browse files
README.md
CHANGED
|
@@ -16,11 +16,28 @@ pipeline_tag: text-classification
|
|
| 16 |
library_name: transformers
|
| 17 |
tags:
|
| 18 |
- text-classification
|
| 19 |
-
- trip
|
| 20 |
- multi-text-classification
|
| 21 |
- classification
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
---
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
# π NeuroLocale β Your Smarter Nearby Assistant! πΊοΈ
|
| 25 |
|
| 26 |
[](https://opensource.org/licenses)
|
|
@@ -91,6 +108,7 @@ print(result) # π¨οΈ Example Output: [{'label': 'game', 'score': 0.9999}]
|
|
| 91 |
|
| 92 |
---
|
| 93 |
|
|
|
|
| 94 |
## Supported Categories πͺ
|
| 95 |
|
| 96 |
NeuroLocale supports **120+ local business categories**, each paired with an emoji for clarity:
|
|
@@ -228,7 +246,7 @@ Get started with NeuroLocale:
|
|
| 228 |
pip install transformers torch pandas scikit-learn tqdm
|
| 229 |
```
|
| 230 |
|
| 231 |
-
- **Requirements** π: Python 3.8+, ~
|
| 232 |
- **Optional** π§: CUDA-enabled GPU for faster training/inference.
|
| 233 |
- **Model Download** π₯: Grab the pre-trained model from [Hugging Face](https://huggingface.co/boltuix/NeuroLocale).
|
| 234 |
|
|
@@ -247,6 +265,37 @@ NeuroLocale is trained using **NeuroBERT** for multi-class text classification.
|
|
| 247 |
...
|
| 248 |
```
|
| 249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 250 |
### Training Code
|
| 251 |
```python
|
| 252 |
import pandas as pd
|
|
@@ -491,7 +540,7 @@ NeuroLocale was tested on **122 test cases**, achieving **94.26% accuracy** (115
|
|
| 491 |
- **Source**: Open-source datasets, augmented with custom queries (e.g., ChatGPT, Grok, or proprietary data).
|
| 492 |
- **Format**: CSV with `text` (query) and `label` (category) columns.
|
| 493 |
- **Categories**: 120+ (see [Supported Categories](#supported-categories)).
|
| 494 |
-
- **Size**: Varies based on dataset; model footprint ~
|
| 495 |
- **Preprocessing**: Handled via tokenization and label encoding (see [Training the Model](#training-the-model)).
|
| 496 |
|
| 497 |
---
|
|
|
|
| 16 |
library_name: transformers
|
| 17 |
tags:
|
| 18 |
- text-classification
|
|
|
|
| 19 |
- multi-text-classification
|
| 20 |
- classification
|
| 21 |
+
- intent-classification
|
| 22 |
+
- intent-detection
|
| 23 |
+
- nlp
|
| 24 |
+
- natural-language-processing
|
| 25 |
+
- transformers
|
| 26 |
+
- edge-ai
|
| 27 |
+
- iot
|
| 28 |
+
- smart-home
|
| 29 |
+
- location-intelligence
|
| 30 |
+
- voice-assistant
|
| 31 |
+
- conversational-ai
|
| 32 |
+
- real-time
|
| 33 |
+
- boltuix
|
| 34 |
+
- neurobert
|
| 35 |
---
|
| 36 |
|
| 37 |
+
|
| 38 |
+

|
| 39 |
+
|
| 40 |
+
|
| 41 |
# π NeuroLocale β Your Smarter Nearby Assistant! πΊοΈ
|
| 42 |
|
| 43 |
[](https://opensource.org/licenses)
|
|
|
|
| 108 |
|
| 109 |
---
|
| 110 |
|
| 111 |
+
|
| 112 |
## Supported Categories πͺ
|
| 113 |
|
| 114 |
NeuroLocale supports **120+ local business categories**, each paired with an emoji for clarity:
|
|
|
|
| 246 |
pip install transformers torch pandas scikit-learn tqdm
|
| 247 |
```
|
| 248 |
|
| 249 |
+
- **Requirements** π: Python 3.8+, ~50MB storage for model and dependencies.
|
| 250 |
- **Optional** π§: CUDA-enabled GPU for faster training/inference.
|
| 251 |
- **Model Download** π₯: Grab the pre-trained model from [Hugging Face](https://huggingface.co/boltuix/NeuroLocale).
|
| 252 |
|
|
|
|
| 265 |
...
|
| 266 |
```
|
| 267 |
|
| 268 |
+
|
| 269 |
+
# π€ Supported Categories from `boltuix/NeuroLocale`
|
| 270 |
+
|
| 271 |
+
This file shows how to extract the full list of intent labels supported by the `boltuix/NeuroLocale` model using Hugging Face Transformers.
|
| 272 |
+
|
| 273 |
+
---
|
| 274 |
+
|
| 275 |
+
## π§ How to List All Supported Categories
|
| 276 |
+
|
| 277 |
+
```python
|
| 278 |
+
from transformers import AutoModelForSequenceClassification
|
| 279 |
+
|
| 280 |
+
# π₯ Load the fine-tuned intent classification model
|
| 281 |
+
model = AutoModelForSequenceClassification.from_pretrained("boltuix/NeuroLocale")
|
| 282 |
+
|
| 283 |
+
# π·οΈ Extract the ID-to-label mapping dictionary
|
| 284 |
+
label_mapping = model.config.id2label
|
| 285 |
+
|
| 286 |
+
# π Convert and sort all labels to a clean list
|
| 287 |
+
supported_labels = sorted(label_mapping.values())
|
| 288 |
+
|
| 289 |
+
# β
Print the supported categories
|
| 290 |
+
print("β
Supported Categories:", supported_labels)
|
| 291 |
+
|
| 292 |
+
#β
Output
|
| 293 |
+
#β
Supported Categories: ['accounting firm', 'airport', 'amusement park', ',...
|
| 294 |
+
|
| 295 |
+
```
|
| 296 |
+
---
|
| 297 |
+
|
| 298 |
+
|
| 299 |
### Training Code
|
| 300 |
```python
|
| 301 |
import pandas as pd
|
|
|
|
| 540 |
- **Source**: Open-source datasets, augmented with custom queries (e.g., ChatGPT, Grok, or proprietary data).
|
| 541 |
- **Format**: CSV with `text` (query) and `label` (category) columns.
|
| 542 |
- **Categories**: 120+ (see [Supported Categories](#supported-categories)).
|
| 543 |
+
- **Size**: Varies based on dataset; model footprint ~50MB.
|
| 544 |
- **Preprocessing**: Handled via tokenization and label encoding (see [Training the Model](#training-the-model)).
|
| 545 |
|
| 546 |
---
|