RUCAIBox / Erya

huggingface.co
Total runs: 46
24-hour runs: 0
7-day runs: 1
30-day runs: 34
Model's Last Updated: August 03 2023
translation

Introduction of Erya

Model Details of Erya

Model Description

Erya is a pretrained model specifically designed for translating Ancient Chinese into Modern Chinese. It utilizes an Encoder-Decoder architecture and has been trained using a combination of DMLM (Dual Masked Language Model) and DAS (Disyllabic Aligned Substitution) techniques on datasets comprising both Ancient Chinese and Modern Chinese texts. The detailed information of our work can be found here: RUCAIBox/Erya (github.com)

More information about Erya dataset can be found here: RUCAIBox/Erya-dataset · Datasets at Hugging Face , which can be used to tune the Erya model further for a better translation performance.

Example

>>> from transformers import BertTokenizer, CPTForConditionalGeneration

>>> tokenizer = BertTokenizer.from_pretrained("RUCAIBox/Erya")
>>> model = CPTForConditionalGeneration.from_pretrained("RUCAIBox/Erya")

>>> input_ids = tokenizer("安世字子孺,少以父任为郎。", return_tensors='pt')
>>> input_ids.pop("token_type_ids")

>>> pred_ids = model.generate(max_new_tokens=256, **input_ids)
>>> print(tokenizer.batch_decode(pred_ids, skip_special_tokens=True))
    ['安 世 字 子 孺 , 年 轻 时 因 父 任 郎 官 。']

Runs of RUCAIBox Erya on huggingface.co

46
Total runs
0
24-hour runs
1
3-day runs
1
7-day runs
34
30-day runs

More Information About Erya huggingface.co Model

Erya huggingface.co

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

RUCAIBox Erya online free

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

RUCAIBox Erya online free url in huggingface.co:

https://huggingface.co/RUCAIBox/Erya

Erya install

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

Erya install url in huggingface.co:

https://huggingface.co/RUCAIBox/Erya

Url of Erya

Provider of Erya huggingface.co

RUCAIBox
ORGANIZATIONS

Other API from RUCAIBox

huggingface.co

Total runs: 3.2K
Run Growth: -938
Growth Rate: -29.06%
Updated:June 27 2022
huggingface.co

Total runs: 77
Run Growth: 60
Growth Rate: 77.92%
Updated:August 03 2023
huggingface.co

Total runs: 66
Run Growth: 60
Growth Rate: 82.19%
Updated:October 28 2022
huggingface.co

Total runs: 12
Run Growth: 3
Growth Rate: 25.00%
Updated:June 27 2022
huggingface.co

Total runs: 7
Run Growth: 0
Growth Rate: 0.00%
Updated:June 27 2022