Run this model with HF Jobs
Run ctrlbuzz/bert-addresses on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/ctrlbuzz/bert-addresses. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ctrlbuzz/bert-addresses on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use ctrlbuzz/bert-addresses with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ctrlbuzz/bert-addresses with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="ctrlbuzz/bert-addresses")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("ctrlbuzz/bert-addresses") model = AutoModelForTokenClassification.from_pretrained("ctrlbuzz/bert-addresses", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model Card for Model ID
This model is developed to tag Names, Organisations and addresses. I have used a data combined fro Conll, ontonotes5, and a custom address dataset that was self made. Cleaned out the tags. Detects U.S addresses. ["O", "B-ORG", "I-ORG", "B-PER", "I-PER",'B-addr','I-addr']
Model Description
- Developed by: ctrlbuzz
- Model type: Bert
- Language(s) (NLP): Named Entity recognition
- Finetuned from model [optional]: bert-base-cased
Uses
Direct Use
from transformers import AutoTokenizer, AutoModelForTokenClassification
from transformers import pipeline
tokenizer = AutoTokenizer.from_pretrained('bert-base-cased')
model = AutoModelForTokenClassification.from_pretrained("ctrlbuzz/bert-addresses")
nlp = pipeline("ner", model=model, tokenizer=tokenizer)
example = "While Maria was representing Johnson & Associates at a conference in Spain, she mailed me a letter from her new office at 123 Elm St., Apt. 4B, Springfield, IL.",
print(nlp(example))
- Downloads last month
- 1,789