Text Classification
setfit
Safetensors
sentence-transformers
xlm-roberta
generated_from_setfit_trainer
text-embeddings-inference
Instructions to use LKriesch/TwinTransitionMapper_AI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use LKriesch/TwinTransitionMapper_AI with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("LKriesch/TwinTransitionMapper_AI") - sentence-transformers
How to use LKriesch/TwinTransitionMapper_AI with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("LKriesch/TwinTransitionMapper_AI") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -17,14 +17,13 @@ inference: true
|
|
| 17 |
|
| 18 |
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [intfloat/multilingual-e5-large](https://huggingface.co/intfloat/multilingual-e5-large) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
|
| 19 |
|
| 20 |
-
The model has been trained using an efficient few-shot learning technique that involves:
|
| 21 |
|
| 22 |
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
| 23 |
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
| 24 |
|
| 25 |
The model is designed to predict the AI capabilities of German companies based on their website texts. It is intended to be used in conjunction with the Twin_Transition_Mapper_Green model to identify companies contributing to the twin transition in Germany. For detailed information on the fine-tuning process and the results of these models, please refer to: [LINK TO WORKING PAPER]
|
| 26 |
|
| 27 |
-
## Model Details
|
| 28 |
|
| 29 |
### Model Description
|
| 30 |
- **Model Type:** SetFit
|
|
|
|
| 17 |
|
| 18 |
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [intfloat/multilingual-e5-large](https://huggingface.co/intfloat/multilingual-e5-large) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
|
| 19 |
|
| 20 |
+
The model has been trained on paragraphs from German company websites using an efficient few-shot learning technique that involves:
|
| 21 |
|
| 22 |
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
| 23 |
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
| 24 |
|
| 25 |
The model is designed to predict the AI capabilities of German companies based on their website texts. It is intended to be used in conjunction with the Twin_Transition_Mapper_Green model to identify companies contributing to the twin transition in Germany. For detailed information on the fine-tuning process and the results of these models, please refer to: [LINK TO WORKING PAPER]
|
| 26 |
|
|
|
|
| 27 |
|
| 28 |
### Model Description
|
| 29 |
- **Model Type:** SetFit
|