Run this model with HF Jobs
Run TweebankNLP/bertweet-tb2-ner 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/TweebankNLP/bertweet-tb2-ner. 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/TweebankNLP/bertweet-tb2-ner 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 TweebankNLP/bertweet-tb2-ner with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TweebankNLP/bertweet-tb2-ner with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="TweebankNLP/bertweet-tb2-ner")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("TweebankNLP/bertweet-tb2-ner") model = AutoModelForTokenClassification.from_pretrained("TweebankNLP/bertweet-tb2-ner", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files8 unmodified lines910111213148 unmodified lines- In the paper, it is referred as `HuggingFace-BERTweet (TB2)` in the NER table.## How to use the model```pythonfrom transformers import AutoTokenizer, AutoModelForTokenClassification8 unmodified lines91011121314158 unmodified lines- In the paper, it is referred as `HuggingFace-BERTweet (TB2)` in the NER table.## How to use the model- **PRE-PROCESSING**: when you apply the model on tweets, please make sure that tweets are preprocessed by the [TweetTokenizer](https://github.com/VinAIResearch/BERTweet/blob/master/TweetNormalizer.py) to get the best performance.```pythonfrom transformers import AutoTokenizer, AutoModelForTokenClassification
README.md+1