Downloads · 30 days
16
33% of all-time downloads
rushilJariwala/bert-base-cased-paraphrase-classification
bert-base-cased-paraphrase-classification is a text classification model from rushilJariwala. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
The bert-base-cased-paraphrase-classification model is a fine-tuned version of the BERT (Bidirectional Encoder Representations from Transformers) architecture specifically designed for paraphrase classification. It us…
Downloads · 30 days
16
33% of all-time downloads
All-time downloads
48
Public
Parameters
109M
438 MB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors438 MB · 100%
From the Hugging Face model README
The bert-base-cased-paraphrase-classification model is a fine-tuned version of the BERT (Bidirectional Encoder Representations from Transformers) architecture specifically designed for paraphrase classification. It uses the cased variant of BERT as the base model. This model has been fine-tuned for identifying whether two input sentences are paraphrases of each other.
This model can directly classify whether two sentences are paraphrases of each other.
When fine-tuned on a specific task or integrated into a larger application, this model can assist in tasks requiring paraphrase identification.
This model may not perform optimally on sentences with highly domain-specific vocabulary not seen during training, and it is limited to the English language.
This model's performance may vary based on the similarity of sentences to those in the training data. It may exhibit biases based on the dataset used for training.
Users should consider domain-specific fine-tuning for optimal performance in specific applications. Additionally, careful evaluation and validation are recommended for critical applications.
Use the following Python code to get started with the model:
from transformers import pipeline
pipe = pipeline("text-classification", model="rushilJariwala/bert-base-cased-paraphrase-classification")
sequences = [
"I've been waiting for a HuggingFace course my whole life.",
"This course is amazing!",
]
result = pipe(sequences)
print(result)
#### Preprocessing
The text was tokenized using BERT's cased tokenizer with truncation and padding.
#### Training Hyperparameters
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
- Batch Size: 8
- Learning Rate: 5e-5
- Optimizer: AdamW
- Number of Epochs: 3
#### Testing Data
The model was evaluated on the MRPC validation set.
#### Metrics
Accuracy: 86.27%
#### Summary
The model achieved an accuracy of 86.27% on the MRPC validation set.