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
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,7 +13,7 @@ We have fine-tuned this model from pretrained "bert-base-uncased".
|
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
-
# How to
|
| 17 |
|
| 18 |
The model answer the following question: Is "phrase B" paraphrases 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.
|
|
@@ -23,7 +23,7 @@ Resulting probabilities correspond to classes:
|
|
| 23 |
* 1: It's a paraphrase
|
| 24 |
|
| 25 |
|
| 26 |
-
You can
|
| 27 |
|
| 28 |
```
|
| 29 |
import torch
|
|
|
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
+
# How to use it
|
| 17 |
|
| 18 |
The model answer the following question: Is "phrase B" paraphrases 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.
|
|
|
|
| 23 |
* 1: It's a paraphrase
|
| 24 |
|
| 25 |
|
| 26 |
+
You can use the model like this:
|
| 27 |
|
| 28 |
```
|
| 29 |
import torch
|