Views
No views yet
(KO) 이처럼 금융상품의 경우 판매단계에서 금융회사의 ... 상품의 권유는 기본이고 필수라 할 것이다.
(ZN) 像这样,金融商品在销售阶段,提供金融公司适当的信息和推荐适合金融消费者的商品是基本,也是必须的.| FinCSE-mbert-cased | FinCSE-xlm-roberta-base | FinCSE-xlm-roberta-large | |
|---|---|---|---|
| ACC@1 | 97.14 | 97.24 | 97.75 |
| ACC@5 | 98.75 | 98.76 | 98.86 |
| ACC@10 | 98.87 | 98.88 | 98.91 |
| Text | Translation | |
|---|---|---|
| EN | Experts predict that the U.S. Federal Reserve will lower interest rates by 0.25 percentage points this month, predicting that interest rates will fall by more than 0.5 percentage points in total within this year. | Experts predict that the U.S. Federal Reserve will lower interest rates by 0.25 percentage points this month, predicting that interest rates will fall by more than 0.5 percentage points in total within this year. |
| ZN | 铁矿石是高度依赖中国需求的原材料,中国占各矿业公司出口的70%。 | Iron ore is a raw material that is highly dependent on China's demand, with China accounting for 70% of exports from mining companies. |
| JA | オラクルは今年の大型技術株のうち、株価上昇率が人工知能(AI)半導体大将主であるNVIDIAの139%上昇率を除けば最も高い。 | Oracle's stock price increase is the second highest among major tech stocks this year, after NVIDIA, the leader in AI semiconductors, with a 139% increase. |
| VI | NYT chỉ ra rằng điểm yếu của ngành công nghiệp Trung Quốc là LLM và hầu hết các chương trình mà các công ty Trung Quốc đưa ra dưới dạng AI tổng hợp trên thực tế đều được nhập khẩu từ Mỹ và được cải tiến. | The New York Times points out that the weakness of China's industry lies in Large Language Models (LLMs), and that most of the programs offered by Chinese companies in the form of generative AI are actually imported from the U.S. and then improved upon. |
| ID | Harga saham Trump Media, perusahaan induk Truth Social, perusahaan layanan jejaring sosial (SNS) yang didirikan oleh mantan calon presiden AS dari Partai Republik Donald Trump, anjlok lebih dari 10%. | The stock price of Trump Media, the parent company of Truth Social, the social networking service (SNS) founded by former U.S. presidential candidate from the Republican Party, Donald Trump, plunged by more than 10%. |
1import numpy as np
2from transformers import AutoModel, AutoTokenizer
3
4model_path = 'snumin44/fincse-multilingual-xlm-roberta-base'
5model = AutoModel.from_pretrained(model_path)
6tokenizer = AutoTokenizer.from_pretrained(model_path)
7
8query = '중국 생성형 AI 기업 현황'
9
10targets = [
11 "Experts predict that the U.S. Federal Reserve will lower interest rates by 0.25 percentage points this month, predicting that interest rates will fall by more than 0.5 percentage points in total within this year.",
12 "铁矿石是高度依赖中国需求的原材料,中国占各矿业公司出口的70%。",
13 "オラクルは今年の大型技術株のうち、株価上昇率が人工知能(AI)半導体大将主であるNVIDIAの139%上昇率を除けば最も高い。",
14 "NYT chỉ ra rằng điểm yếu của ngành công nghiệp Trung Quốc là LLM và hầu hết các chương trình mà các công ty Trung Quốc đưa ra dưới dạng AI tổng hợp trên thực tế đều được nhập khẩu từ Mỹ và được cải tiến.",
15 "Harga saham Trump Media, perusahaan induk Truth Social, perusahaan layanan jejaring sosial (SNS) yang didirikan oleh mantan calon presiden AS dari Partai Republik Donald Trump, anjlok lebih dari 10%."
16]
17
18query_feature = tokenizer(query, return_tensors='pt')
19query_outputs = model(**query_feature, return_dict=True)
20query_embeddings = query_outputs.pooler_output.detach().numpy().squeeze()
21
22def cos_sim(A, B):
23 return np.dot(A, B) / (np.linalg.norm(A) * np.linalg.norm(B))
24
25for idx, target in enumerate(targets):
26 target_feature = tokenizer(target, return_tensors='pt')
27 target_outputs = model(**target_feature, return_dict=True)
28 target_embeddings = target_outputs.pooler_output.detach().numpy().squeeze()
29 similarity = cos_sim(query_embeddings, target_embeddings)
30 print(f"Similarity between query and target {idx}: {similarity:.4f}")Similarity between query and target 0: 0.1105
Similarity between query and target 1: 0.2662
Similarity between query and target 2: 0.3043
Similarity between query and target 3: 0.5328
Similarity between query and target 4: 0.1904@article{gao2021simcse,
title={{SimCSE}: Simple Contrastive Learning of Sentence Embeddings},
author={Gao, Tianyu and Yao, Xingcheng and Chen, Danqi},
booktitle={Empirical Methods in Natural Language Processing (EMNLP)},
year={2021}
}