File size: 1,113 Bytes
b611c10
 
 
 
 
 
 
 
 
 
 
 
 
 
bbe6078
b611c10
 
cc8f57b
b611c10
 
 
 
 
 
 
cc8f57b
b611c10
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
language:
- ko
- en
metrics:
- bleu
pipeline_tag: translation
tags:
- science
- technology
---

# Model Overview
This model is fine-tuned model of "Helsinki-NLP/opus-mt-ko-en" <br/>
The model is trained with 1,198,943 Korean-English sentence pairs which mainly contains science, technology terms. 

# Load Model
```python
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM

tokenizer = AutoTokenizer.from_pretrained("mjk0618/mt-ko-en-scitech")
model = AutoModelForSeq2SeqLM.from_pretrained("mjk0618/mt-ko-en-scitech")
```

# How to use
```python
# After loading model
sentence = "์ธ๊ณต์ง€๋Šฅ์€ ์ธ๊ฐ„์˜ ํ•™์Šต๋Šฅ๋ ฅ, ์ถ”๋ก ๋Šฅ๋ ฅ, ์ง€๊ฐ๋Šฅ๋ ฅ์„ ์ธ๊ณต์ ์œผ๋กœ ๊ตฌํ˜„ํ•˜๋ ค๋Š” ์ปดํ“จํ„ฐ ๊ณผํ•™์˜ ์„ธ๋ถ€๋ถ„์•ผ ์ค‘ ํ•˜๋‚˜์ด๋‹ค"

inputs = tokenizer(sentence, return_tensors="pt").input_ids
outputs = model.generate(inputs)[0]
translated_sentence = tokenizer.decode(outputs, skip_special_tokens=True)

print(translated_sentence)
# Artificial intelligence is one of the details of computer science that artifically implements human learning ability, reasoning ability, and perception ability.
```