Description
Pretrained BertEmbeddings model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP.bert_base_cased_finetuned_mrpc
is a English model originally trained by huggingface.
Predicted Entities
How to use
document_assembler = DocumentAssembler() \
.setInputCol("text") \
.setOutputCol("documents")
embeddings =BertEmbeddings.pretrained("bert_base_cased_finetuned_mrpc","en") \
.setInputCols(["documents","token"]) \
.setOutputCol("embeddings")
pipeline = Pipeline().setStages([document_assembler, embeddings])
pipelineModel = pipeline.fit(data)
pipelineDF = pipelineModel.transform(data)
Model Information
Model Name: | bert_base_cased_finetuned_mrpc |
Compatibility: | Spark NLP 5.5.0+ |
License: | Open Source |
Edition: | Official |
Input Labels: | [document, token] |
Output Labels: | [bert] |
Language: | en |
Size: | 403.6 MB |
References
References
https://huggingface.co/bert-base-cased-finetuned-mrpc