boltuix / bert-local

huggingface.co
Total runs: 192
24-hour runs: 0
7-day runs: -3
30-day runs: 126
Model's Last Updated: June 09 2025
text-classification

Introduction of bert-local

Model Details of bert-local

Banner

๐ŸŒ bert-local โ€” Your Smarter Nearby Assistant! ๐Ÿ—บ๏ธ

License: Open Source Accuracy Categories

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. ๐Ÿš€

Explore bert-local ๐ŸŒŸ

Table of Contents ๐Ÿ“‹

Why bert-local? ๐ŸŒˆ
  • 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 score
print(result)  # ๐Ÿ–จ๏ธ Example output: [{'label': 'aquarium', 'score': 0.999}]

Supported Categories ๐Ÿช

bert-local supports 140 local business categories , each paired with an emoji for clarity:

  • ๐Ÿ’ผ Accounting Firm
  • โœˆ๏ธ Airport
  • ๐ŸŽข Amusement Park
  • ๐Ÿ  Aquarium
  • ๐Ÿ–ผ๏ธ Art Gallery
  • ๐Ÿง ATM
  • ๐Ÿš— Auto Dealership
  • ๐Ÿ”ง Auto Repair Shop
  • ๐Ÿฅ Bakery
  • ๐Ÿฆ Bank
  • ๐Ÿป Bar
  • ๐Ÿ’ˆ Barber Shop
  • ๐Ÿ–๏ธ Beach
  • ๐Ÿšฒ Bicycle Store
  • ๐Ÿ“š Book Store
  • ๐ŸŽณ Bowling Alley
  • ๐ŸšŒ Bus Station
  • ๐Ÿฅฉ Butcher Shop
  • โ˜• Cafe
  • ๐Ÿ“ธ Camera Store
  • โ›บ Campground
  • ๐Ÿš˜ Car Rental
  • ๐Ÿงผ Car Wash
  • ๐ŸŽฐ Casino
  • โšฐ๏ธ Cemetery
  • โ›ช Church
  • ๐Ÿ›๏ธ City Hall
  • ๐Ÿฉบ Clinic
  • ๐Ÿ‘— Clothing Store
  • โ˜• Coffee Shop
  • ๐Ÿช Convenience Store
  • ๐Ÿณ Cooking School
  • ๐Ÿ–จ๏ธ Copy Center
  • ๐Ÿ“ฆ Courier Service
  • โš–๏ธ Courthouse
  • โœ‚๏ธ Craft Store
  • ๐Ÿ’ƒ Dance Studio
  • ๐Ÿฆท Dentist
  • ๐Ÿฌ Department Store
  • ๐Ÿฉบ Doctorโ€™s Office
  • ๐Ÿ’Š Drugstore
  • ๐Ÿงผ Dry Cleaner
  • โšก๏ธ Electrician
  • ๐Ÿ“ฑ Electronics Store
  • ๐Ÿซ Elementary School
  • ๐Ÿ›๏ธ Embassy
  • ๐Ÿš’ Fire Station
  • ๐Ÿ’ Florist
  • ๐ŸŽฎ Gaming Center
  • โšฐ๏ธ Funeral Home
  • ๐ŸŽ Gift Shop
  • ๐ŸŒธ Flower Shop
  • ๐Ÿ”ฉ Hardware Store
  • ๐Ÿ’‡ Hair Salon
  • ๐Ÿ”จ Handyman
  • ๐Ÿงน House Cleaning
  • ๐Ÿ› ๏ธ House Painter
  • ๐Ÿ  Home Goods Store
  • ๐Ÿฅ Hospital
  • ๐Ÿ•‰๏ธ Hindu Temple
  • ๐ŸŒณ Gardening Service
  • ๐Ÿก Lodging
  • ๐Ÿ”’ Locksmith
  • ๐Ÿงผ Laundromat
  • ๐Ÿ“š Library
  • ๐Ÿšˆ Light Rail Station
  • ๐Ÿ›ก๏ธ Insurance Agency
  • โ˜• Internet Cafe
  • ๐Ÿจ Hotel
  • ๐Ÿ’Ž Jewelry Store
  • ๐Ÿ—ฃ๏ธ Language School
  • ๐Ÿ›๏ธ Market
  • ๐Ÿฝ๏ธ Meal Delivery Service
  • ๐Ÿ•Œ Mosque
  • ๐ŸŽฅ Movie Theater
  • ๐Ÿšš Moving Company
  • ๐Ÿ›๏ธ Museum
  • ๐ŸŽต Music School
  • ๐ŸŽธ Music Store
  • ๐Ÿ’… Nail Salon
  • ๐ŸŽ‰ Night Club
  • ๐ŸŒฑ Nursery
  • ๐Ÿ–Œ๏ธ Office Supply Store
  • ๐ŸŒณ Park
  • ๐Ÿš— Parking Lot
  • ๐Ÿœ Pest Control Service
  • ๐Ÿพ Pet Grooming
  • ๐Ÿถ Pet Store
  • ๐Ÿ’Š Pharmacy
  • ๐Ÿ“ท Photography Studio
  • ๐Ÿฉบ Physiotherapist
  • ๐Ÿ’‰ Piercing Shop
  • ๐Ÿšฐ Plumbing Service
  • ๐Ÿš“ Police Station
  • ๐Ÿ“š Public Library
  • ๐Ÿšป Public Restroom
  • ๐Ÿ  Real Estate Agency
  • โ™ป๏ธ Recycling Center
  • ๐Ÿฝ๏ธ Restaurant
  • ๐Ÿ  Roofing Contractor
  • ๐Ÿซ School
  • ๐Ÿ“ฆ Shipping Center
  • ๐Ÿ‘ž Shoe Store
  • ๐Ÿฌ Shopping Mall
  • โ›ธ๏ธ Skating Rink
  • โ„๏ธ Snow Removal Service
  • ๐Ÿง˜ Spa
  • ๐Ÿ€ Sport Store
  • ๐ŸŸ๏ธ Stadium
  • ๐Ÿ“œ Stationary Store
  • ๐Ÿ“ฆ Storage Facility
  • ๐Ÿš‡ Subway Station
  • ๐Ÿ›’ Supermarket
  • ๐Ÿ• Synagogue
  • โœ‚๏ธ Tailor
  • ๐ŸŽจ Tattoo Parlor
  • ๐Ÿš• Taxi Stand
  • ๐Ÿš— Tire Shop
  • ๐Ÿ—บ๏ธ Tourist Attraction
  • ๐Ÿงธ Toy Store
  • ๐ŸŽฒ Toy Lending Library
  • ๐Ÿš‚ Train Station
  • ๐Ÿš† Transit Station
  • โœˆ๏ธ Travel Agency
  • ๐Ÿซ University
  • ๐Ÿ“ผ Video Rental Store
  • ๐Ÿท Wine Shop
  • ๐Ÿง˜ Yoga Studio
  • ๐Ÿฆ’ Zoo
  • โ›ฝ Gas Station
  • ๐Ÿ“ฏ Post Office
  • ๐Ÿ’ช Gym
  • ๐Ÿ˜๏ธ Community Center
  • ๐Ÿช Grocery Store

Installation ๐Ÿ› ๏ธ

Get started with bert-local:

pip install transformers torch pandas scikit-learn tqdm
  • 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 categories
print("โœ… 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"
    ...
    
Training Code
  • ๐Ÿ“ Get training Source Code ๐ŸŒŸ
  • ๐Ÿ“ Dataset (comming soon..)

Evaluation ๐Ÿ“ˆ

bert-local was tested on 122 test cases , achieving 94.26% accuracy (115/122 correct). Below are sample results:

Query Expected Category Predicted Category Confidence Status
How do I catch the early ride to the runway? โœˆ๏ธ Airport โœˆ๏ธ Airport 0.997 โœ…
Are the roller coasters still running today? ๐ŸŽข Amusement Park ๐ŸŽข Amusement Park 0.997 โœ…
Where can I see ocean creatures behind glass? ๐Ÿ  Aquarium ๐Ÿ  Aquarium 1.000 โœ…
Evaluation Metrics
Metric Value
Accuracy 94.26%
F1 Score (Weighted) ~0.94 (estimated)
Processing Time <50ms per query

Note : F1 score is estimated based on high accuracy. Test with your dataset for precise metrics.


Dataset Details ๐Ÿ“Š
  • Source : Open-source datasets, augmented with custom queries (e.g., ChatGPT, Grok, or proprietary data).
  • Format : CSV with text (query) and label (category) columns.
  • Categories : 140 (see Supported Categories ).
  • Size : Varies based on dataset; model footprint ~20MB.
  • Preprocessing : Handled via tokenization and label encoding (see Training the Model ).

Use Cases ๐ŸŒ

bert-local powers a variety of applications:

  • Local Search Apps ๐Ÿ—บ๏ธ: Suggest ๐Ÿพ pet stores or ๐Ÿฉบ clinics based on queries like โ€œMy dog is sick.โ€
  • Chatbots ๐Ÿค–: Enhance customer service bots with context-aware local recommendations.
  • E-Commerce ๐Ÿ›๏ธ: Guide users to nearby ๐Ÿ’ผ accounting firms or ๐Ÿ“š bookstores.
  • Travel Apps โœˆ๏ธ: Recommend ๐Ÿจ hotels or ๐Ÿ—บ๏ธ tourist attractions for travelers.
  • Healthcare ๐Ÿฉบ: Direct users to ๐Ÿฅ hospitals or ๐Ÿ’Š pharmacies for urgent needs.
  • Smart Assistants ๐Ÿ“ฑ: Integrate with voice assistants for hands-free local search.

Comparison to Other Solutions โš–๏ธ
Solution Categories Accuracy NLP Strength Open Source
bert-local 140+ 94.26% Strong ๐Ÿง  Yes โœ…
Google Maps API ~100 ~85% Moderate No โŒ
Yelp API ~80 ~80% Weak No โŒ
OpenStreetMap Varies Varies Weak Yes โœ…

bert-local excels with its high accuracy , strong NLP , and open-source flexibility . ๐Ÿš€


Source ๐ŸŒฑ
  • Base Model : bert-mini.
  • Data : Open-source datasets, synthetic queries, and community contributions.
  • Mission : Make local search intuitive and intent-driven for all.

License ๐Ÿ“œ

Open Source : Free to use, modify, and distribute under Apache-2.0. See repository for details.


Credits ๐Ÿ™Œ
  • Developed By : [bert-local team] ๐Ÿ‘จโ€๐Ÿ’ป
  • Base Model : bert-mini ๐Ÿง 
  • Powered By : Hugging Face ๐Ÿค—, PyTorch ๐Ÿ”ฅ, and open-source datasets ๐ŸŒ

Community & Support ๐ŸŒ

Join the bert-local community:

Your feedback shapes bert-local! ๐Ÿ˜Š


Last Updated ๐Ÿ“…

June 9, 2025 โ€” Added 140+ category support, updated test accuracy, and enhanced documentation with emojis.

Get Started with bert-local ๐Ÿš€

Runs of boltuix bert-local on huggingface.co

192
Total runs
0
24-hour runs
-4
3-day runs
-3
7-day runs
126
30-day runs

More Information About bert-local huggingface.co Model

More bert-local license Visit here:

https://choosealicense.com/licenses/apache-2.0

bert-local huggingface.co

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 Url

https://huggingface.co/boltuix/bert-local

boltuix bert-local online free

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:

https://huggingface.co/boltuix/bert-local

bert-local install

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.

bert-local install url in huggingface.co:

https://huggingface.co/boltuix/bert-local

Url of bert-local

bert-local huggingface.co Url

Provider of bert-local huggingface.co

boltuix
ORGANIZATIONS

Other API from boltuix

huggingface.co

Total runs: 9.1K
Run Growth: 2.5K
Growth Rate: 27.70%
Updated:June 30 2025
huggingface.co

Total runs: 7.3K
Run Growth: 5.0K
Growth Rate: 69.70%
Updated:June 30 2025
huggingface.co

Total runs: 940
Run Growth: 724
Growth Rate: 73.13%
Updated:June 30 2025
huggingface.co

Total runs: 290
Run Growth: -1.4K
Growth Rate: -465.64%
Updated:June 30 2025
huggingface.co

Total runs: 121
Run Growth: 43
Growth Rate: 35.54%
Updated:June 30 2025
huggingface.co

Total runs: 38
Run Growth: 0
Growth Rate: 0.00%
Updated:March 28 2025
huggingface.co

Total runs: 32
Run Growth: -171
Growth Rate: -518.18%
Updated:June 25 2025
huggingface.co

Total runs: 23
Run Growth: 0
Growth Rate: 0.00%
Updated:March 29 2025
huggingface.co

Total runs: 21
Run Growth: -14
Growth Rate: -66.67%
Updated:June 30 2025
huggingface.co

Total runs: 20
Run Growth: -41
Growth Rate: -205.00%
Updated:June 25 2025
huggingface.co

Total runs: 18
Run Growth: 15
Growth Rate: 83.33%
Updated:June 25 2025
huggingface.co

Total runs: 16
Run Growth: -43
Growth Rate: -268.75%
Updated:June 25 2025
huggingface.co

Total runs: 16
Run Growth: 1
Growth Rate: 6.25%
Updated:June 25 2025
huggingface.co

Total runs: 13
Run Growth: -6
Growth Rate: -46.15%
Updated:June 25 2025
huggingface.co

Total runs: 12
Run Growth: 11
Growth Rate: 91.67%
Updated:June 14 2025
huggingface.co

Total runs: 9
Run Growth: 6
Growth Rate: 66.67%
Updated:June 09 2025
huggingface.co

Total runs: 8
Run Growth: 0
Growth Rate: 0.00%
Updated:April 06 2025
huggingface.co

Total runs: 4
Run Growth: 3
Growth Rate: 75.00%
Updated:June 25 2025