Commit ·
54b289a
1
Parent(s): 6fa9489
Update README.md
Browse files
README.md
CHANGED
|
@@ -9,7 +9,9 @@ pipeline_tag: text-classification
|
|
| 9 |
|
| 10 |
# HamzaFarhan/PDFSegs
|
| 11 |
|
| 12 |
-
This is a [SetFit model](https://github.com/huggingface/setfit) that can be used for text classification.
|
|
|
|
|
|
|
| 13 |
|
| 14 |
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
| 15 |
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
|
@@ -30,7 +32,7 @@ from setfit import SetFitModel
|
|
| 30 |
# Download from Hub and run inference
|
| 31 |
model = SetFitModel.from_pretrained("HamzaFarhan/PDFSegs")
|
| 32 |
# Run inference
|
| 33 |
-
preds = model([
|
| 34 |
```
|
| 35 |
|
| 36 |
## BibTeX entry and citation info
|
|
|
|
| 9 |
|
| 10 |
# HamzaFarhan/PDFSegs
|
| 11 |
|
| 12 |
+
This is a [SetFit model](https://github.com/huggingface/setfit) that can be used for text classification.
|
| 13 |
+
<br>The labels are: 'Work Experience', 'Education', and 'Certifications'.
|
| 14 |
+
<br>The model has been trained using an efficient few-shot learning technique that involves:
|
| 15 |
|
| 16 |
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
| 17 |
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
|
|
|
| 32 |
# Download from Hub and run inference
|
| 33 |
model = SetFitModel.from_pretrained("HamzaFarhan/PDFSegs")
|
| 34 |
# Run inference
|
| 35 |
+
preds = model(['I worked at Google for 5 years.','I have a PhD in Computer Science.'])
|
| 36 |
```
|
| 37 |
|
| 38 |
## BibTeX entry and citation info
|