Instructions to use Sabreen88/wildfire-CrisisT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sabreen88/wildfire-CrisisT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Sabreen88/wildfire-CrisisT")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Sabreen88/wildfire-CrisisT") model = AutoModelForSequenceClassification.from_pretrained("Sabreen88/wildfire-CrisisT", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model description
- This model is trained on tweets from wildfire events between 2017 and 2021
- This model is based on CrisisTransformer architecture
Intended uses & limitations
The model is mostly intended to be used for inference of wildfire tweets to detect the urgency of the tweet.
Note that this model is primarily aimed at being used for inference on tweets and will only work within the limits of 514 character tweets.
Usage
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Sabreen88/wildfire-CrisisT")
model = AutoModelForSequenceClassification.from_pretrained("Sabreen88/wildfire-CrisisT")
- Downloads last month
- 10