Instructions to use Prompsit/paraphrase-bert-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Prompsit/paraphrase-bert-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Prompsit/paraphrase-bert-en")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Prompsit/paraphrase-bert-en") model = AutoModelForSequenceClassification.from_pretrained("Prompsit/paraphrase-bert-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
1a86eb3
1
Parent(s): 41f52fb
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,7 +15,7 @@ Model built under a TSI-100905-2019-4 project, co-financed by Ministry of Econom
|
|
| 15 |
|
| 16 |
# How to use it
|
| 17 |
|
| 18 |
-
The model answer the following question: Is "phrase B"
|
| 19 |
Please note that we're considering phrases instead of sentences. Therefore, we must take into account that the model doesn't expect to find punctuation marks or long pieces of text.
|
| 20 |
|
| 21 |
Resulting probabilities correspond to classes:
|
|
@@ -41,4 +41,4 @@ Code output is:
|
|
| 41 |
```
|
| 42 |
tensor([[0.1592, 0.8408]], grad_fn=<SoftmaxBackward>)
|
| 43 |
```
|
| 44 |
-
As the probability of 1 is 0.84, we can conclude from the previous example that "could be included" is paraphrase of "may be
|
|
|
|
| 15 |
|
| 16 |
# How to use it
|
| 17 |
|
| 18 |
+
The model answer the following question: Is "phrase B" a paraphrase of "phrase A".
|
| 19 |
Please note that we're considering phrases instead of sentences. Therefore, we must take into account that the model doesn't expect to find punctuation marks or long pieces of text.
|
| 20 |
|
| 21 |
Resulting probabilities correspond to classes:
|
|
|
|
| 41 |
```
|
| 42 |
tensor([[0.1592, 0.8408]], grad_fn=<SoftmaxBackward>)
|
| 43 |
```
|
| 44 |
+
As the probability of 1 is 0.84, we can conclude from the previous example that "could be included" is paraphrase of "may be addressed".
|