Dual-Alignment Pre-training for Cross-lingual Sentence Embedding
Paper • 2305.09148 • Published • 1
How to use ChillingDream/dap-xlm-roberta-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("feature-extraction", model="ChillingDream/dap-xlm-roberta-base") # Load model directly
from transformers import AutoTokenizer, RobertaForRLM
tokenizer = AutoTokenizer.from_pretrained("ChillingDream/dap-xlm-roberta-base")
model = RobertaForRLM.from_pretrained("ChillingDream/dap-xlm-roberta-base")This repository contains the model of the paper Dual-Alignment Pre-training for Cross-lingual Sentence Embedding.
Github repository: https://github.com/ChillingDream/DAP