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