112건의 퇴거를 예방하거나 미연에 방지하여 151,619달러의 피난처 비용과 그들이 실향민이 되었을 때 가족들이 겪는 혼란을 덜어주었다.
안데르센 컨설팅은 여전히 번창하는 사업이다.
이것은 내가 영국의 아서 안데르센 사업부의 파트너인 짐 와디아를 아서 안데르센 경영진이 선택한 것보다 래리 웨인바흐를 안데르센 월드와이드의 경영 파트너로 승계하기 위해 안데르센 컨설팅 사업부(현재의 엑센츄어라고 알려져 있음)의 전 관리 파트너인 조지 샤힌에 대한 지지를 표명했을 때 가장 명백했다.
source_sentence
sentences
그 표는 주요 경제 정보를 보여준다.
표는 모집단 밀도를 나타냅니다.
아이들이 야외에서 놀고 있다.
표 3은 배출량 감소가 개인 소비와 국내총생산(GDP)의 다른 구성 요소에 미치는 영향을 비교하기 위해 2010년의 주요 거시경제 데이터를 요약한 것이다.
source_sentence
sentences
안경을 쓴 나이든 남자가 바닥에 누워 갓난아기와 장난감 소방차를 가지고 놀고 있다.
긴 검은 머리와 초록색 탱크톱을 가진 남자가 손가락을 보고 있다.
안경을 쓴 남자는 원숭이이고 아기 원숭이와 놀고 있다.
안경을 쓴 남자가 바닥에 누워 놀고 있다.
sentence-similarity
name
results
upskyy/e5-large-korean
task
dataset
metrics
type
name
semantic-similarity
Semantic Similarity
name
type
sts dev
sts-dev
type
value
name
pearson_cosine
0.8710078333363093
Pearson Cosine
type
value
name
spearman_cosine
0.8698788475177747
Spearman Cosine
type
value
name
pearson_manhattan
0.8598807479137434
Pearson Manhattan
type
value
name
spearman_manhattan
0.8682945370063891
Spearman Manhattan
type
value
name
pearson_euclidean
0.8596482760879562
Pearson Euclidean
type
value
name
spearman_euclidean
0.8679655812613122
Spearman Euclidean
type
value
name
pearson_dot
0.8684600033706916
Pearson Dot
type
value
name
spearman_dot
0.8668368265035578
Spearman Dot
type
value
name
pearson_max
0.8710078333363093
Pearson Max
type
value
name
spearman_max
0.8698788475177747
Spearman Max
upskyy/e5-large-korean
This model is korsts and kornli finetuning model from intfloat/multilingual-e5-large. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
fromsentence_transformersimportSentenceTransformer# Download from the 🤗 Hubmodel=SentenceTransformer("upskyy/e5-large-korean")# Run inferencesentences=['아이를 가진 엄마가 해변을 걷는다.','두 사람이 해변을 걷는다.','한 남자가 해변에서 개를 산책시킨다.',]embeddings=model.encode(sentences)print(embeddings.shape)# [3, 1024]# Get the similarity scores for the embeddingssimilarities=model.similarity(embeddings,embeddings)print(similarities.shape)# [3, 3]
Usage (HuggingFace Transformers)
Without sentence-transformers, you can use the model like this:
First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
fromtransformersimportAutoTokenizer,AutoModelimporttorch# Mean Pooling - Take attention mask into account for correct averagingdefmean_pooling(model_output,attention_mask):token_embeddings=model_output[0]# First element of model_output contains all token embeddingsinput_mask_expanded=attention_mask.unsqueeze(-1).expand(token_embeddings.size()).float()returntorch.sum(token_embeddings*input_mask_expanded,1)/torch.clamp(input_mask_expanded.sum(1),min=1e-9)# Sentences we want sentence embeddings forsentences=["안녕하세요?","한국어 문장 임베딩을 위한 버트 모델입니다."]# Load model from HuggingFace Hubtokenizer=AutoTokenizer.from_pretrained("upskyy/e5-large-korean")model=AutoModel.from_pretrained("upskyy/e5-large-korean")# Tokenize sentencesencoded_input=tokenizer(sentences,padding=True,truncation=True,return_tensors="pt")# Compute token embeddingswithtorch.no_grad():model_output=model(**encoded_input)# Perform pooling. In this case, mean pooling.sentence_embeddings=mean_pooling(model_output,encoded_input["attention_mask"])print("Sentence embeddings:")print(sentence_embeddings)
@article{wang2024multilingual,title={Multilingual E5 Text Embeddings: A Technical Report},author={Wang, Liang and Yang, Nan and Huang, Xiaolong and Yang, Linjun and Majumder, Rangan and Wei, Furu},journal={arXiv preprint arXiv:2402.05672},year={2024}}
@inproceedings{reimers-2019-sentence-bert,title="Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",author="Reimers, Nils and Gurevych, Iryna",booktitle="Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",month="11",year="2019",publisher="Association for Computational Linguistics",url="https://arxiv.org/abs/1908.10084",}