sappho192 / aihub-ja-ko-translator

huggingface.co
Total runs: 1.3K
24-hour runs: 5
7-day runs: -871
30-day runs: -5.3K
Model's Last Updated: June 28 2024
translation

Introduction of aihub-ja-ko-translator

Model Details of aihub-ja-ko-translator

Japanese to Korean translator

Japanese to Korean translator model based on EncoderDecoderModel ( bert-japanese + kogpt2 )

Usage

Demo

Please visit https://huggingface.co/spaces/sappho192/aihub-ja-ko-translator-demo

Dependencies (PyPI)
  • torch
  • transformers
  • fugashi
  • unidic-lite
Inference
from transformers import(
    EncoderDecoderModel,
    PreTrainedTokenizerFast,
    BertJapaneseTokenizer,
)

import torch

encoder_model_name = "cl-tohoku/bert-base-japanese-v2"
decoder_model_name = "skt/kogpt2-base-v2"

src_tokenizer = BertJapaneseTokenizer.from_pretrained(encoder_model_name)
trg_tokenizer = PreTrainedTokenizerFast.from_pretrained(decoder_model_name)

model = EncoderDecoderModel.from_pretrained("sappho192/aihub-ja-ko-translator")

text = "初めまして。よろしくお願いします。"

def translate(text_src):
    embeddings = src_tokenizer(text_src, return_attention_mask=False, return_token_type_ids=False, return_tensors='pt')
    embeddings = {k: v for k, v in embeddings.items()}
    output = model.generate(**embeddings, max_length=500)[0, 1:-1]
    text_trg = trg_tokenizer.decode(output.cpu())
    return text_trg

print(translate(text))

Dataset

This model used datasets from 'The Open AI Dataset Project (AI-Hub, South Korea)'.
All data information can be accessed through 'AI-Hub ( aihub.or.kr )'.
( In order for a corporation, organization, or individual located outside of Korea to use AI data, etc., a separate agreement is required with the performing organization and the Korea National Information Society agency(NIA). In order to export AI data, etc. outside the country, a separate agreement is required with the performing organization and the NIA. Link )

이 모델은 과학기술정보통신부의 재원으로 한국지능정보사회진흥원의 지원을 받아 구축된 데이터셋을 활용하여 수행된 연구입니다.
본 모델에 활용된 데이터는 AI 허브( aihub.or.kr )에서 다운로드 받으실 수 있습니다.
( 국외에 소재하는 법인, 단체 또는 개인이 AI데이터 등을 이용하기 위해서는 수행기관 등 및 한국지능정보사회진흥원과 별도로 합의가 필요합니다.
본 AI데이터 등의 국외 반출을 위해서는 수행기관 등 및 한국지능정보사회진흥원과 별도로 합의가 필요합니다. [ 출처 ])

Dataset list

The dataset used to train the model is merged following sub-datasets:

    1. 일상생활 및 구어체 한-중, 한-일 번역 병렬 말뭉치 데이터 [ Link ]
    1. 한국어-다국어(영어 제외) 번역 말뭉치(기술과학) [ Link ]
    1. 한국어-다국어 번역 말뭉치(기초과학) [ Link ]
    1. 한국어-다국어 번역 말뭉치 (인문학) [ Link ]
  • 한국어-일본어 번역 말뭉치 [ Link ]

To reproduce the the merged dataset, you can use the code in below link:
https://github.com/sappho192/aihub-translation-dataset

Runs of sappho192 aihub-ja-ko-translator on huggingface.co

1.3K
Total runs
5
24-hour runs
-83
3-day runs
-871
7-day runs
-5.3K
30-day runs

More Information About aihub-ja-ko-translator huggingface.co Model

More aihub-ja-ko-translator license Visit here:

https://choosealicense.com/licenses/mit

aihub-ja-ko-translator huggingface.co

aihub-ja-ko-translator huggingface.co is an AI model on huggingface.co that provides aihub-ja-ko-translator's model effect (), which can be used instantly with this sappho192 aihub-ja-ko-translator model. huggingface.co supports a free trial of the aihub-ja-ko-translator model, and also provides paid use of the aihub-ja-ko-translator. Support call aihub-ja-ko-translator model through api, including Node.js, Python, http.

aihub-ja-ko-translator huggingface.co Url

https://huggingface.co/sappho192/aihub-ja-ko-translator

sappho192 aihub-ja-ko-translator online free

aihub-ja-ko-translator huggingface.co is an online trial and call api platform, which integrates aihub-ja-ko-translator's modeling effects, including api services, and provides a free online trial of aihub-ja-ko-translator, you can try aihub-ja-ko-translator online for free by clicking the link below.

sappho192 aihub-ja-ko-translator online free url in huggingface.co:

https://huggingface.co/sappho192/aihub-ja-ko-translator

aihub-ja-ko-translator install

aihub-ja-ko-translator is an open source model from GitHub that offers a free installation service, and any user can find aihub-ja-ko-translator on GitHub to install. At the same time, huggingface.co provides the effect of aihub-ja-ko-translator install, users can directly use aihub-ja-ko-translator installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

aihub-ja-ko-translator install url in huggingface.co:

https://huggingface.co/sappho192/aihub-ja-ko-translator

Url of aihub-ja-ko-translator

aihub-ja-ko-translator huggingface.co Url

Provider of aihub-ja-ko-translator huggingface.co

sappho192
ORGANIZATIONS

Other API from sappho192