Instructions to use HamzaFarhan/PDFSegs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use HamzaFarhan/PDFSegs with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("HamzaFarhan/PDFSegs") 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] - setfit
How to use HamzaFarhan/PDFSegs with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("HamzaFarhan/PDFSegs") - Notebooks
- Google Colab
- Kaggle
Commit ·
6fa9489
1
Parent(s): 65f3fa6
Add SetFit model
Browse files- model_head.pkl +2 -2
- pytorch_model.bin +1 -1
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b3e70c1f953adb71687759538f9d1ea7dbcef753b4b999402ca30d9ab4acdf42
|
| 3 |
+
size 10723
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 438016493
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:885cf88154383fe59eae01ad0418aac0c155bb3a333f448ba36e356cea6ceb94
|
| 3 |
size 438016493
|