Model Overview
This model is fine-tuned model of "Helsinki-NLP/opus-mt-ko-en" <br/> The model has been trained with 1,198,943 Korean, Enlgish sentence pairs which mainly contains science, technology terms.
Load Model
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
# 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.