Sentence Similarity
sentence-transformers
Safetensors
Portuguese
bert
patchdedup
experimental
pt-br
text-embeddings-inference
Instructions to use enzoferracini/patchdedup-ptbr-minilm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use enzoferracini/patchdedup-ptbr-minilm with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("enzoferracini/patchdedup-ptbr-minilm") 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
Download evaluation/v02/test.json from enzoferracini/patchdedup-ptbr-minilm: direct link, hf CLI and curl.
- Browser
- Download file 9.89 kB
-
https://huggingface.co/enzoferracini/patchdedup-ptbr-minilm/resolve/main/evaluation/v02/test.json
- Command line
-
hf download hf://enzoferracini/patchdedup-ptbr-minilm/evaluation/v02/test.json
-
curl -L -o test.json https://huggingface.co/enzoferracini/patchdedup-ptbr-minilm/resolve/main/evaluation/v02/test.json
9.89 kB
| { | |
| "methods": { | |
| "lexical": { | |
| "support": 48, | |
| "positive_support": 24, | |
| "precision": 0.4418604651162791, | |
| "recall": 0.7916666666666666, | |
| "f1": 0.5671641791044776, | |
| "macro_f1": 0.2835820895522388, | |
| "average_precision": 0.3173059302256198, | |
| "confusion_matrix": [ | |
| [ | |
| 0, | |
| 24 | |
| ], | |
| [ | |
| 5, | |
| 19 | |
| ] | |
| ], | |
| "coverage": 0.10416666666666667, | |
| "review_rate": 0.8958333333333334, | |
| "review_count": 43, | |
| "redundant_count": 0, | |
| "not_redundant_count": 5, | |
| "selective_precision": null, | |
| "negative_predictive_value": 0.0, | |
| "hard_negative_false_positive_rate": 1.0, | |
| "relation_errors": { | |
| "contradictory": { | |
| "support": 6, | |
| "errors": 6 | |
| }, | |
| "distinct": { | |
| "support": 9, | |
| "errors": 9 | |
| }, | |
| "partial_overlap": { | |
| "support": 9, | |
| "errors": 9 | |
| }, | |
| "redundant": { | |
| "support": 24, | |
| "errors": 5 | |
| } | |
| } | |
| }, | |
| "base": { | |
| "support": 48, | |
| "positive_support": 24, | |
| "precision": 0.425, | |
| "recall": 0.7083333333333334, | |
| "f1": 0.53125, | |
| "macro_f1": 0.296875, | |
| "average_precision": 0.36874995471089334, | |
| "confusion_matrix": [ | |
| [ | |
| 1, | |
| 23 | |
| ], | |
| [ | |
| 7, | |
| 17 | |
| ] | |
| ], | |
| "coverage": 0.041666666666666664, | |
| "review_rate": 0.9583333333333334, | |
| "review_count": 46, | |
| "redundant_count": 0, | |
| "not_redundant_count": 2, | |
| "selective_precision": null, | |
| "negative_predictive_value": 0.0, | |
| "hard_negative_false_positive_rate": 0.9583333333333334, | |
| "relation_errors": { | |
| "contradictory": { | |
| "support": 6, | |
| "errors": 6 | |
| }, | |
| "distinct": { | |
| "support": 9, | |
| "errors": 8 | |
| }, | |
| "partial_overlap": { | |
| "support": 9, | |
| "errors": 9 | |
| }, | |
| "redundant": { | |
| "support": 24, | |
| "errors": 7 | |
| } | |
| } | |
| }, | |
| "incumbent": { | |
| "support": 48, | |
| "positive_support": 24, | |
| "precision": 0.5, | |
| "recall": 0.9583333333333334, | |
| "f1": 0.6571428571428571, | |
| "macro_f1": 0.36703296703296706, | |
| "average_precision": 0.37539343611397247, | |
| "confusion_matrix": [ | |
| [ | |
| 1, | |
| 23 | |
| ], | |
| [ | |
| 1, | |
| 23 | |
| ] | |
| ], | |
| "coverage": 0.375, | |
| "review_rate": 0.625, | |
| "review_count": 30, | |
| "redundant_count": 15, | |
| "not_redundant_count": 3, | |
| "selective_precision": 0.13333333333333333, | |
| "negative_predictive_value": 0.3333333333333333, | |
| "hard_negative_false_positive_rate": 0.9583333333333334, | |
| "relation_errors": { | |
| "contradictory": { | |
| "support": 6, | |
| "errors": 6 | |
| }, | |
| "distinct": { | |
| "support": 9, | |
| "errors": 8 | |
| }, | |
| "partial_overlap": { | |
| "support": 9, | |
| "errors": 9 | |
| }, | |
| "redundant": { | |
| "support": 24, | |
| "errors": 1 | |
| } | |
| } | |
| }, | |
| "contrastive": { | |
| "support": 48, | |
| "positive_support": 24, | |
| "precision": 0.5, | |
| "recall": 0.9583333333333334, | |
| "f1": 0.6571428571428571, | |
| "macro_f1": 0.36703296703296706, | |
| "average_precision": 0.4034762889706429, | |
| "confusion_matrix": [ | |
| [ | |
| 1, | |
| 23 | |
| ], | |
| [ | |
| 1, | |
| 23 | |
| ] | |
| ], | |
| "coverage": 0.3333333333333333, | |
| "review_rate": 0.6666666666666666, | |
| "review_count": 32, | |
| "redundant_count": 14, | |
| "not_redundant_count": 2, | |
| "selective_precision": 0.2857142857142857, | |
| "negative_predictive_value": 0.5, | |
| "hard_negative_false_positive_rate": 0.9583333333333334, | |
| "relation_errors": { | |
| "contradictory": { | |
| "support": 6, | |
| "errors": 6 | |
| }, | |
| "distinct": { | |
| "support": 9, | |
| "errors": 8 | |
| }, | |
| "partial_overlap": { | |
| "support": 9, | |
| "errors": 9 | |
| }, | |
| "redundant": { | |
| "support": 24, | |
| "errors": 1 | |
| } | |
| } | |
| }, | |
| "online_contrastive": { | |
| "support": 48, | |
| "positive_support": 24, | |
| "precision": 0.42105263157894735, | |
| "recall": 0.6666666666666666, | |
| "f1": 0.5161290322580645, | |
| "macro_f1": 0.31688804554079697, | |
| "average_precision": 0.3968737254914094, | |
| "confusion_matrix": [ | |
| [ | |
| 2, | |
| 22 | |
| ], | |
| [ | |
| 8, | |
| 16 | |
| ] | |
| ], | |
| "coverage": 0.375, | |
| "review_rate": 0.625, | |
| "review_count": 30, | |
| "redundant_count": 15, | |
| "not_redundant_count": 3, | |
| "selective_precision": 0.3333333333333333, | |
| "negative_predictive_value": 0.3333333333333333, | |
| "hard_negative_false_positive_rate": 0.9166666666666666, | |
| "relation_errors": { | |
| "contradictory": { | |
| "support": 6, | |
| "errors": 6 | |
| }, | |
| "distinct": { | |
| "support": 9, | |
| "errors": 7 | |
| }, | |
| "partial_overlap": { | |
| "support": 9, | |
| "errors": 9 | |
| }, | |
| "redundant": { | |
| "support": 24, | |
| "errors": 8 | |
| } | |
| } | |
| }, | |
| "cosent_balanced": { | |
| "support": 48, | |
| "positive_support": 24, | |
| "precision": 0.4634146341463415, | |
| "recall": 0.7916666666666666, | |
| "f1": 0.5846153846153846, | |
| "macro_f1": 0.3568238213399504, | |
| "average_precision": 0.37426756458958566, | |
| "confusion_matrix": [ | |
| [ | |
| 2, | |
| 22 | |
| ], | |
| [ | |
| 5, | |
| 19 | |
| ] | |
| ], | |
| "coverage": 0.5, | |
| "review_rate": 0.5, | |
| "review_count": 24, | |
| "redundant_count": 22, | |
| "not_redundant_count": 2, | |
| "selective_precision": 0.2727272727272727, | |
| "negative_predictive_value": 0.5, | |
| "hard_negative_false_positive_rate": 0.9166666666666666, | |
| "relation_errors": { | |
| "contradictory": { | |
| "support": 6, | |
| "errors": 6 | |
| }, | |
| "distinct": { | |
| "support": 9, | |
| "errors": 7 | |
| }, | |
| "partial_overlap": { | |
| "support": 9, | |
| "errors": 9 | |
| }, | |
| "redundant": { | |
| "support": 24, | |
| "errors": 5 | |
| } | |
| } | |
| }, | |
| "cosent_frozen": { | |
| "support": 48, | |
| "positive_support": 24, | |
| "precision": 0.5, | |
| "recall": 0.9583333333333334, | |
| "f1": 0.6571428571428571, | |
| "macro_f1": 0.36703296703296706, | |
| "average_precision": 0.3836396412166536, | |
| "confusion_matrix": [ | |
| [ | |
| 1, | |
| 23 | |
| ], | |
| [ | |
| 1, | |
| 23 | |
| ] | |
| ], | |
| "coverage": 0.5208333333333334, | |
| "review_rate": 0.4791666666666667, | |
| "review_count": 23, | |
| "redundant_count": 22, | |
| "not_redundant_count": 3, | |
| "selective_precision": 0.3181818181818182, | |
| "negative_predictive_value": 0.3333333333333333, | |
| "hard_negative_false_positive_rate": 0.9583333333333334, | |
| "relation_errors": { | |
| "contradictory": { | |
| "support": 6, | |
| "errors": 6 | |
| }, | |
| "distinct": { | |
| "support": 9, | |
| "errors": 8 | |
| }, | |
| "partial_overlap": { | |
| "support": 9, | |
| "errors": 9 | |
| }, | |
| "redundant": { | |
| "support": 24, | |
| "errors": 1 | |
| } | |
| } | |
| }, | |
| "cross_encoder": { | |
| "support": 48, | |
| "positive_support": 24, | |
| "precision": 0.5714285714285714, | |
| "recall": 0.8333333333333334, | |
| "f1": 0.6779661016949152, | |
| "macro_f1": 0.5822262940907008, | |
| "average_precision": 0.6584700550006422, | |
| "confusion_matrix": [ | |
| [ | |
| 9, | |
| 15 | |
| ], | |
| [ | |
| 4, | |
| 20 | |
| ] | |
| ], | |
| "coverage": 0.10416666666666667, | |
| "review_rate": 0.8958333333333334, | |
| "review_count": 43, | |
| "redundant_count": 0, | |
| "not_redundant_count": 5, | |
| "selective_precision": null, | |
| "negative_predictive_value": 0.8, | |
| "hard_negative_false_positive_rate": 0.625, | |
| "relation_errors": { | |
| "contradictory": { | |
| "support": 6, | |
| "errors": 5 | |
| }, | |
| "distinct": { | |
| "support": 9, | |
| "errors": 5 | |
| }, | |
| "partial_overlap": { | |
| "support": 9, | |
| "errors": 5 | |
| }, | |
| "redundant": { | |
| "support": 24, | |
| "errors": 4 | |
| } | |
| } | |
| }, | |
| "cross_encoder_frozen": { | |
| "support": 48, | |
| "positive_support": 24, | |
| "precision": 0.6129032258064516, | |
| "recall": 0.7916666666666666, | |
| "f1": 0.6909090909090909, | |
| "macro_f1": 0.6381374722838138, | |
| "average_precision": 0.6784682203188901, | |
| "confusion_matrix": [ | |
| [ | |
| 12, | |
| 12 | |
| ], | |
| [ | |
| 5, | |
| 19 | |
| ] | |
| ], | |
| "coverage": 0.0625, | |
| "review_rate": 0.9375, | |
| "review_count": 45, | |
| "redundant_count": 0, | |
| "not_redundant_count": 3, | |
| "selective_precision": null, | |
| "negative_predictive_value": 0.6666666666666666, | |
| "hard_negative_false_positive_rate": 0.5, | |
| "relation_errors": { | |
| "contradictory": { | |
| "support": 6, | |
| "errors": 5 | |
| }, | |
| "distinct": { | |
| "support": 9, | |
| "errors": 3 | |
| }, | |
| "partial_overlap": { | |
| "support": 9, | |
| "errors": 4 | |
| }, | |
| "redundant": { | |
| "support": 24, | |
| "errors": 5 | |
| } | |
| } | |
| } | |
| }, | |
| "chosen_finetuned": "online_contrastive", | |
| "chosen_bi_encoder": "online_contrastive", | |
| "test_pairs": 48, | |
| "test_groups": 24, | |
| "selection_sha256": "bb82a5c1cfd0573a6e0c89720e88ee4b0a211bb2728d3bbf36d102960cb5e335", | |
| "limitation": "Fresh authored pilot; same AI author; previous diagnostics influenced general design" | |
| } | |