Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
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 = "初めまして。よろしくお願いします。"deftranslate(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:
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 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:
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: