Understand Intent, Find Nearby Solutions
💡
bert-local
is an intelligent AI assistant powered by
bert-mini
, designed to interpret natural, conversational queries and suggest precise local business categories in real time. Unlike traditional map services that struggle with NLP, bert-local captures personal intent to deliver actionable results—whether it’s finding a 🐾 pet store for a sick dog or a 💼 accounting firm for tax help.
With support for
140+ local business categories
and a compact model size of
~20MB
, bert-local combines open-source datasets and advanced fine-tuning to overcome the limitations of Google Maps’ NLP. Open source and extensible, it’s perfect for developers and businesses building context-aware local search solutions on edge devices and mobile applications. 🚀
Intent-Driven
🧠: Understands natural language queries like “My dog isn’t eating” to suggest 🐾 pet stores or 🩺 veterinary clinics.
Accurate & Fast
⚡: Achieves
94.26% test accuracy
(115/122 correct) for precise category predictions in real time.
Extensible
🛠️: Open source and customizable with your own datasets (e.g., ChatGPT, Grok, or proprietary data).
Comprehensive
🏪: Supports
140+ local business categories
, from 💼 accounting firms to 🦒 zoos.
Lightweight
📱: Compact
~20MB
model size, optimized for edge devices and mobile applications.
“bert-local transformed our app’s local search—it feels like it
gets
the user!” — App Developer 💬
Key Features ✨
Advanced NLP
📜: Built on
bert-mini
, fine-tuned for multi-class text classification.
Real-Time Results
⏱️: Delivers category suggestions instantly, even for complex queries.
Wide Coverage
🗺️: Matches queries to 140+ business categories with high confidence.
Developer-Friendly
🧑💻: Easy integration with Python 🐍, Hugging Face 🤗, and custom APIs.
Open Source
🌐: Freely extend and adapt for your needs.
🔧 How to Use
from transformers import pipeline # 🤗 Import Hugging Face pipeline# 🚀 Load the fine-tuned intent classification model
classifier = pipeline("text-classification", model="boltuix/bert-local")
# 🧠 Predict the user's intent from a sample input sentence
result = classifier("Where can I see ocean creatures behind glass?") # 🐠 Expecting Aquarium# 📊 Print the classification result with label and confidence scoreprint(result) # 🖨️ Example output: [{'label': 'aquarium', 'score': 0.999}]
Supported Categories 🏪
bert-local supports
140 local business categories
, each paired with an emoji for clarity:
Requirements
📋: Python 3.8+, ~20MB storage for model and dependencies.
Optional
🔧: CUDA-enabled GPU for faster training/inference.
Model Download
📥: Grab the pre-trained model from
Hugging Face
.
Quickstart: Dive In 🚀
from transformers import AutoModelForSequenceClassification
# 📥 Load the fine-tuned intent classification model
model = AutoModelForSequenceClassification.from_pretrained("boltuix/bert-local")
# 🏷️ Extract the ID-to-label mapping dictionary
label_mapping = model.config.id2label
# 📋 Convert and sort all labels to a clean list
supported_labels = sorted(label_mapping.values())
# ✅ Print the supported categoriesprint("✅ Supported Categories:", supported_labels)
Training the Model 🧠
bert-local is trained using
bert-mini
for multi-class text classification. Here’s how to train it:
Prerequisites
Dataset in CSV format with
text
(query) and
label
(category) columns.
Example dataset structure:
text,label
"Need help with taxes","accounting firm"
"Where’s the nearest airport?","airport"
...
bert-local huggingface.co is an AI model on huggingface.co that provides bert-local's model effect (), which can be used instantly with this boltuix bert-local model. huggingface.co supports a free trial of the bert-local model, and also provides paid use of the bert-local. Support call bert-local model through api, including Node.js, Python, http.
bert-local huggingface.co is an online trial and call api platform, which integrates bert-local's modeling effects, including api services, and provides a free online trial of bert-local, you can try bert-local online for free by clicking the link below.
boltuix bert-local online free url in huggingface.co:
bert-local is an open source model from GitHub that offers a free installation service, and any user can find bert-local on GitHub to install. At the same time, huggingface.co provides the effect of bert-local install, users can directly use bert-local installed effect in huggingface.co for debugging and trial. It also supports api for free installation.