binbin83 / setfit-MiniLM-dialog-act-fr

huggingface.co
Total runs: 7
24-hour runs: 0
7-day runs: 1
30-day runs: 2
Model's Last Updated: January 31 2024
text-classification

Introduction of setfit-MiniLM-dialog-act-fr

Model Details of setfit-MiniLM-dialog-act-fr

binbin83/setfit-MiniLM-dialog-act-13nov

The model is a multi-class multi-label text classifier to distinguish the different dialog act in semi-structured interview. The data used fot fine-tuning were in French.

This is a SetFit model that can be used for text classification. The model has been trained using an efficient few-shot learning technique that involves:

  1. Fine-tuning a Sentence Transformer with contrastive learning.
  2. Training a classification head with features from the fine-tuned Sentence Transformer.
Usage

To use this model for inference, first install the SetFit library:

python -m pip install setfit

You can then run inference as follows:

from setfit import SetFitModel

# Download from Hub and run inference
model = SetFitModel.from_pretrained("binbin83/setfit-MiniLM-dialog-act-13nov")
label_dict = {'Introductory': 0, 'FollowUp': 1, 'Probing': 2, 'Specifying': 3, 'Structuring': 4, 'DirectQuestion': 5, 'Interpreting': 6, 'Ending': 7}
# Run inference
preds = model(["Vous pouvez continuer", "Pouvez-vous me dire précisément quel a été l'odre chronologique des événements ?"])
labels = [[[f for f, p in zip(labels_dict, ps) if p] for ps in [pred]] for pred in preds ]
Labels and training data

Brinkmann, S., & Kvale, S (1), define classification of dialog act in interview:

  • Introductory: Can you tell me about ... (something specific)?,
  • Follow-up verbal cues: repeat back keywords to participants, ask for reflection or unpacking of point just made,
  • Probing: Can you say a little more about X? Why do you think X...? (for example, Why do you think X is that way? Why do you think X is important?),
  • Specifying: Can you give me an example of X?,
  • Indirect: How do you think other people view X?,
  • Structuring: Thank you for that. I’d like to move to another topic...
  • Direct (later stages): When you mention X, are you thinking like Y or Z?,
  • Interpreting: So, what I have gathered is that...,
  • Ending: I have asked all the questions I had, but I wanted to check whether there is something else about your experience/understanding we haven’t covered? Do you have any questions for me?,

On our corpus of interviews, we humanly label 500 turn of speech using this classification. We use 0.7 to train and evaluate on 0.3.

The entire corpus is composed of the following examples:

('DirectQuestion', 23), ('Probing', 15), ('Interpreting', 15), ('Specifying', 14), ('Structuring', 7), ('FollowUp', 6), ('Introductory', 5), ('Ending', 5)

(1) Brinkmann, S., & Kvale, S. (2015). InterViews: Learning the Craft of Qualitative Research Interviewing. (3. ed.) SAGE Publications.

Training and Performances

We finetune: "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2" using SetFit with CosineLossSimilarity and this parapeters: epochs = 20, batch_size=32, num_iterations = 50

On the test dataset : ('Probing', 146), ('Specifying', 135), ('FollowUp', 134), ('DirectQuestion', 125), ('Interpreting', 44), ('Structuring', 27), ('Introductory', 12), ('Ending', 12)

On our test dataset, we get this results: {'f1': 0.35005547563028, 'f1_micro': 0.3686131386861314, 'f1_sample': 0.3120075046904315, 'accuracy': 0.19887429643527205}

BibTeX entry and citation info

To cite the current study:

@article{
doi = {conference paper},
url = {https://arxiv.org/abs/2209.11055},
author = {Quillivic Robin, Charles Payet},
keywords = {NLP, JADT},
title = {Semi-Structured Interview Analysis: A French NLP Toolbox for Social Sciences},
publisher = {JADT},
year = {2024},
copyright = {Creative Commons Attribution 4.0 International}
}

To cite the setFit paper:

@article{https://doi.org/10.48550/arxiv.2209.11055,
doi = {10.48550/ARXIV.2209.11055},
url = {https://arxiv.org/abs/2209.11055},
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Efficient Few-Shot Learning Without Prompts},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution 4.0 International}
}

Runs of binbin83 setfit-MiniLM-dialog-act-fr on huggingface.co

7
Total runs
0
24-hour runs
0
3-day runs
1
7-day runs
2
30-day runs

More Information About setfit-MiniLM-dialog-act-fr huggingface.co Model

More setfit-MiniLM-dialog-act-fr license Visit here:

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

setfit-MiniLM-dialog-act-fr huggingface.co

setfit-MiniLM-dialog-act-fr huggingface.co is an AI model on huggingface.co that provides setfit-MiniLM-dialog-act-fr's model effect (), which can be used instantly with this binbin83 setfit-MiniLM-dialog-act-fr model. huggingface.co supports a free trial of the setfit-MiniLM-dialog-act-fr model, and also provides paid use of the setfit-MiniLM-dialog-act-fr. Support call setfit-MiniLM-dialog-act-fr model through api, including Node.js, Python, http.

setfit-MiniLM-dialog-act-fr huggingface.co Url

https://huggingface.co/binbin83/setfit-MiniLM-dialog-act-fr

binbin83 setfit-MiniLM-dialog-act-fr online free

setfit-MiniLM-dialog-act-fr huggingface.co is an online trial and call api platform, which integrates setfit-MiniLM-dialog-act-fr's modeling effects, including api services, and provides a free online trial of setfit-MiniLM-dialog-act-fr, you can try setfit-MiniLM-dialog-act-fr online for free by clicking the link below.

binbin83 setfit-MiniLM-dialog-act-fr online free url in huggingface.co:

https://huggingface.co/binbin83/setfit-MiniLM-dialog-act-fr

setfit-MiniLM-dialog-act-fr install

setfit-MiniLM-dialog-act-fr is an open source model from GitHub that offers a free installation service, and any user can find setfit-MiniLM-dialog-act-fr on GitHub to install. At the same time, huggingface.co provides the effect of setfit-MiniLM-dialog-act-fr install, users can directly use setfit-MiniLM-dialog-act-fr installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

setfit-MiniLM-dialog-act-fr install url in huggingface.co:

https://huggingface.co/binbin83/setfit-MiniLM-dialog-act-fr

Url of setfit-MiniLM-dialog-act-fr

setfit-MiniLM-dialog-act-fr huggingface.co Url

Provider of setfit-MiniLM-dialog-act-fr huggingface.co

binbin83
ORGANIZATIONS

Other API from binbin83

huggingface.co

Total runs: 1
Run Growth: -1
Growth Rate: -100.00%
Updated:October 05 2023