Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The official repository for "UnihanLM: Coarse-to-Fine Chinese-Japanese Language Model Pretraining with the Unihan Database", AACL-IJCNLP 2020

License

NotificationsYou must be signed in to change notification settings

JetRunner/unihan-lm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

The official repository for "UnihanLM: Coarse-to-Fine Chinese-Japanese Language Model Pretraining with the Unihan Database", AACL-IJCNLP 2020

Pretrained Model

The pretrained model is available at 🤗 Hugging Face Model Hub:https://huggingface.co/microsoft/unihanlm-base

Unihan Clusters

We have made the code to find the Unihan clusters and the cached cluster IDs availablehere.

Training Code

Please follow our paper and use the training code fromfacebookresearch/XLM.

  1. Preprocess your corpus by replacing all characters with the first character in eachcluster.
  2. After cluster-level pretraining, copy the embedding of the first characters in each cluster for other characters in the same cluster.
forclusterinclusters:forchracter_idincluster[1:]:embedding.weight[chracter_id]=embedding.weight[cluster[0]].detach()
  1. Re-preprocess the corpus by a standard procedure.
  2. Restart training on the new corpus.

Note: XLM is released under a CC BY-NC 4.0 licence.

About

The official repository for "UnihanLM: Coarse-to-Fine Chinese-Japanese Language Model Pretraining with the Unihan Database", AACL-IJCNLP 2020

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp