Instructions to use tardigrade-doc/chinese-ambiguous-chars-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use tardigrade-doc/chinese-ambiguous-chars-model with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('fill-mask', 'tardigrade-doc/chinese-ambiguous-chars-model');
- chinese-ambiguous-chars-model
- chinese-ambiguous-chars-model (ONNX)
- Model Card for Model ID
- Model Details
- Uses
- Bias, Risks, and Limitations
- How to Get Started with the Model
- Training Details
- Evaluation
- Model Examination [optional]
- Environmental Impact
- Technical Specifications [optional]
- Citation [optional]
- Glossary [optional]
- More Information [optional]
- Model Card Authors [optional]
- Model Card Contact
chinese-ambiguous-chars-model
็น็ฎ่ฝฌๆขๆญงไนๅญๅคๆญๆจกๅ๏ผๅบไบ hfl/chinese-roberta-wwm-ext ๅพฎ่ฐ๏ผ็จไบๅค็ OpenCC ๆ ๆณๆญฃ็กฎๅคๆญ็ไธ็นๅฏนๅค็ฎๅบๆฏใ
่ๆฏ
ๅจ็น็ฎ่ฝฌๆขไธญ๏ผๅญๅจไธไธช็นไฝๅญๅฏนๅบๅคไธช็ฎไฝๅญ็ๆ ๅต๏ผๅ่ง็น็ฎ่ฝฌๆขไธๅฏนๅคๅ่กจ๏ผใOpenCC ็ญๅบไบๅญๅ ธ็ๅทฅๅ ทๅจๅค็ๆญค็ฑปๆญงไนๆถ๏ผๆ ๆณๆ นๆฎไธไธๆๅๅบๆญฃ็กฎๅคๆญใ
ๅ ธๅไพๅญ๏ผ
| ็นไฝ | ่ฏญๅข | ๆญฃ็กฎ็ฎไฝ |
|---|---|---|
| ่ | ่ๅใ่ไฝ | ่ |
| ่ | ่ตฐ่ใ็่ | ็ |
| ไนพ | ไนพ้ใไนพๅค | ไนพ |
| ไนพ | ไนพ็ฅใไนพ็น | ๅนฒ |
ๆฌๆจกๅ้่ฟ MLM๏ผMasked Language Model๏ผ็ๆนๅผ๏ผๅจ็ปๅฎไธไธๆ็ๆ ๅตไธ๏ผ้ขๆต่ขซ้ฎ็็ๆญงไนๅญๅบ่ฝฌๆขไธบๅชไธช็ฎไฝๅญใ
ไฝฟ็จๅบๆฏ
ๆจ่็จๆณ๏ผOpenCC ๅๆญฅ่ฝฌๆข โ ๆฌๆจกๅไบๆฌกไฟฎๆญฃ
็นไฝๅๆ๏ผ้จ่ๆ้็ๆจ็งป
โ OpenCC t2s
้่ๆถ้ด็ๆจ็งป โ ่ๆช่ขซๆญฃ็กฎ่ฝฌๆข
โ ๆฌๆจกๅ
้็ๆถ้ด็ๆจ็งป โ
่ฎญ็ปๆฐๆฎ
ๆฐๆฎ้๏ผtardigrade-doc/t2c-plus
ไปไปฅไธๆฐๆฎๆบ่ฟๆปคๅพๅฐ๏ผ
่ฎญ็ปๅญๅฏนไธๆฐๆฎ้
ไพๆฎ็น็ฎ่ฝฌๆขไธๅฏนๅคๅ่กจ๏ผ็ปๅๆฐๆฎๅๅธ่ฟ่ก็ญ้๏ผๆ็ปไฟ็ไปฅไธ 7 ็ปๆญงไนๅญ๏ผ
| ็นไฝ | ็ฎไฝ | ๆฐๆฎ้ | ่ฏดๆ |
|---|---|---|---|
| ่ | ่ | 249,116 | ่ๅใ่ไฝ็ญ |
| ่ | ็ | 108,632 | ่ตฐ็ใ็็็ญๅจๆๅฉ่ฏ |
| ็ซ | ็ป | 155,935 | ็ป็ปใ็ป้ข็ญ |
| ็ซ | ๅ | 180,328 | ๅๅใ่งๅ็ญ |
| ่ฆ | ่ฆ | 23,468 | ่ฆ็ใๅพ่ฆ็ญ |
| ่ฆ | ๅค | 183,362 | ็ญๅคใๅๅค็ญ |
| ้ | ็ผ | 11,019 | ็ผ้ใ้ป็ผ็ญ |
| ้ | ้พ | 16,014 | ้พๆกใ้พๆฅ็ญ |
| ไนพ | ไนพ | 20,686 | ไนพ้ใไนพๅค็ญไธๆๅ่ฏ |
| ไนพ | ๅนฒ | 105,431 | ๅนฒ็ฅใๅนฒๅ็ญ |
| ๅธณ | ๅธ | 9,361 | ๅธ็ฏทใ่ๅธ็ญ |
| ๅธณ | ่ดฆ | 3,998 | ่ดฆ็ฎใ่ดฆๅ็ญ |
| ่ | ่ | 4,618 | ๆ ฐ่ใ็ผ่็ญ |
| ่ | ๅ | 5,000 | ๅๅฃใๅญๅ็ญ๏ผๆชๆญ่ณ5000๏ผ |
่ฎญ็ป้ ็ฝฎ
| ๅๆฐ | ๅผ |
|---|---|
| ๅบๅบงๆจกๅ | hfl/chinese-roberta-wwm-ext |
| epochs | 3๏ผๆไผๅจ epoch 1๏ผ |
| batch size | 8๏ผgradient accumulation 4ๆญฅ๏ผ็ญๆ32๏ผ |
| learning rate | 2e-5 |
| max length | 64 tokens |
| fp16 | โ |
| gradient checkpointing | โ |
่ฎญ็ป็ปๆ
| Epoch | eval/loss | eval/accuracy |
|---|---|---|
| 1 | 0.19 โ | 93.2% |
| 2 | 0.20 | 93.6% |
| 3 | 0.27 | 93.9% |
epoch 1 ็ eval/loss ๆไฝ๏ผไธบๅฎ้
ไฝฟ็จ็ๆ้๏ผload_best_model_at_end=True๏ผใ
ๆจกๅๆไปถ
| ๆไปถ | ่ฏดๆ |
|---|---|
model.safetensors |
PyTorch ๆจกๅๆ้๏ผ474MB๏ผ |
config.json |
ๆจกๅ็ปๆ้ ็ฝฎ |
tokenizer.json |
ๅ่ฏๅจ๏ผFast Tokenizer ๆ ผๅผ๏ผ |
tokenizer_config.json |
ๅ่ฏๅจ้ ็ฝฎ |
ONNX ็ๆฌๅฆ่งๅฏนๅบไปๅบ๏ผ้่ฟ convert-to-onnx ่ฝฌๆข๏ผใ
ๅทฒ็ฅ้ฎ้ขไธๅฏไผๅๆนๅ
- ่ฎญ็ปๆฐๆฎๅญๅจๅชๅฃฐ๏ผ้จๅ็ฎไฝ่ฏญๆไธญใ่ใๅใ็ใๅญๅจๆทท็จ๏ผๅฏผ่ด่ฎญ็ปๆถๆขฏๅบฆๆณขๅจ่พๅคง๏ผๅฏ้่ฟ OpenCC ้ช่ฏ label ๅ็ๆง่ฟ่กๆธ ๆด
- ่ฆ็ๅญๅฏนๆ้๏ผ็ฎๅไป ๅค็ 7 ็ป้ซ้ขๆญงไนๅญ๏ผๅ ถไปๆฐๆฎ้ไธ่ถณ็ๅญๅฏน๏ผๅฆใ็ญ/ไบใใใ้/้ดใ็ญ๏ผๆช็บณๅ ฅ่ฎญ็ป
- ๆ็ซฏไธๅ่กกๅญๅฏนๅทฒๆ้ค๏ผๅฆใ่บ/ๅฐใ๏ผ676362 vs 0๏ผใใ็ฆ/่ใ๏ผ215855 vs 0๏ผ็ญ๏ผๅ ็ฎไฝๅ้ๅญๅจ่ฏญๆไธญๅ ไนไธๅญๅจ๏ผๅทฒๆพๅผ็จๆจกๅๅค็๏ผๅปบ่ฎฎ็ดๆฅ็จ OpenCC ่ฏๅ ธๆ ๅฐ
็ธๅ ณ้พๆฅ
- ๅบๅบงๆจกๅ๏ผhfl/chinese-roberta-wwm-ext
- ่ฎญ็ปๆฐๆฎ้๏ผtardigrade-doc/t2c-plus
- ONNX ่ฝฌๆขๅทฅๅ ท๏ผonnx-community/convert-to-onnx
- ๅ่่ตๆ๏ผ็น็ฎ่ฝฌๆขไธๅฏนๅคๅ่กจ - ็ปดๅบ็พ็ง
chinese-ambiguous-chars-model (ONNX)
This is an ONNX version of tardigrade-doc/chinese-ambiguous-chars-model. It was automatically converted and uploaded using this Hugging Face Space.
Usage with Transformers.js
See the pipeline documentation for fill-mask: https://huggingface.co/docs/transformers.js/api/pipelines#module_pipelines.FillMaskPipeline
Model Card for Model ID
Model Details
Model Description
This is the model card of a ๐ค transformers model that has been pushed on the Hub. This model card has been automatically generated.
- Developed by: [More Information Needed]
- Funded by [optional]: [More Information Needed]
- Shared by [optional]: [More Information Needed]
- Model type: [More Information Needed]
- Language(s) (NLP): [More Information Needed]
- License: [More Information Needed]
- Finetuned from model [optional]: [More Information Needed]
Model Sources [optional]
- Repository: [More Information Needed]
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]
Uses
Direct Use
[More Information Needed]
Downstream Use [optional]
[More Information Needed]
Out-of-Scope Use
[More Information Needed]
Bias, Risks, and Limitations
[More Information Needed]
Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
Training Details
Training Data
[More Information Needed]
Training Procedure
Preprocessing [optional]
[More Information Needed]
Training Hyperparameters
- Training regime: [More Information Needed]
Speeds, Sizes, Times [optional]
[More Information Needed]
Evaluation
Testing Data, Factors & Metrics
Testing Data
[More Information Needed]
Factors
[More Information Needed]
Metrics
[More Information Needed]
Results
[More Information Needed]
Summary
Model Examination [optional]
[More Information Needed]
Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: [More Information Needed]
- Hours used: [More Information Needed]
- Cloud Provider: [More Information Needed]
- Compute Region: [More Information Needed]
- Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
[More Information Needed]
Compute Infrastructure
[More Information Needed]
Hardware
[More Information Needed]
Software
[More Information Needed]
Citation [optional]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
Glossary [optional]
[More Information Needed]
More Information [optional]
[More Information Needed]
Model Card Authors [optional]
[More Information Needed]
Model Card Contact
[More Information Needed]
- Downloads last month
- 7
Model tree for tardigrade-doc/chinese-ambiguous-chars-model
Unable to build the model tree, the base model loops to the model itself. Learn more.