German Legal Roberta Embeddings

Description

Pretrained Legal Roberta Embeddings model, adapted from Hugging Face and curated to provide scalability and production-readiness using Spark NLP. legal-german-roberta-large is a German model originally trained by joelito.

Download Copy S3 URI

How to use

sentence_embeddings = RoBertaEmbeddings.pretrained("roberta_large_german_legal", "de")\
  .setInputCols(["sentence"])\
  .setOutputCol("embeddings")
val sentence_embeddings = RoBertaEmbeddings.pretrained("roberta_large_german_legal", "de")
  .setInputCols("sentence")
  .setOutputCol("embeddings"))

Model Information

Model Name: roberta_large_german_legal
Compatibility: Spark NLP 4.2.4+
License: Open Source
Edition: Official
Input Labels: [sentence, token]
Output Labels: [embeddings]
Language: de
Size: 1.3 GB
Case sensitive: true

References

https://huggingface.co/joelito/legal-german-roberta-large