Computational Analysis of Communicative Acts for Understanding Crisis News Comment Discourses

The official trained models for "Computational Analysis of Communicative Acts for Understanding Crisis News Comment Discourses".

This model is based on SetFit (SetFit: Efficient Few-Shot Learning Without Prompts) and uses the sentence-transformers/paraphrase-mpnet-base-v2 pretrained model. It has been fine-tuned on our crisis narratives dataset.


Model Information

  • Architecture: SetFit with sentence-transformers/paraphrase-mpnet-base-v2
  • Task: Single-label classification for communicative act actions
  • Classes:
    • informing statement
    • challenge
    • accusation
    • rejection
    • appreciation
    • request
    • question
    • acceptance
    • apology

How to Use the Model

You can find the code to fine-tune this model and detailed instructions in the following GitHub repository:
Acts in Crisis Narratives - SetFit Fine-Tuning Notebook

Steps to Load and Use the Model:

  1. Install the SetFit library:

    pip install setfit
    
  2. Load the model and run inference:

    from setfit import SetFitModel
    
    # Download from the 🤗 Hub
    model = SetFitModel.from_pretrained("CrisisNarratives/setfit-9classes-single_label")
    
    # Run inference
    preds = model("I'm sorry.")
    

For detailed instructions, refer to the GitHub repository linked above.


Citation

If you use this model in your work, please cite:

TO BE ADDED.

Questions or Feedback?

For questions or feedback, please reach out via our contact form.

Downloads last month
21
Safetensors
Model size
109M params
Tensor type
F32
·
Inference Examples
Inference API (serverless) has been turned off for this model.

Model tree for CrisisNarratives/setfit-9classes-single_label

Finetuned
(256)
this model

Evaluation results