๐ bert-local โ Your Smarter Nearby Assistant! ๐บ๏ธ
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.