Instructions to use xurong123/ChineseErrorDetectorElectra with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use xurong123/ChineseErrorDetectorElectra with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="xurong123/ChineseErrorDetectorElectra")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("xurong123/ChineseErrorDetectorElectra") model = AutoModelForTokenClassification.from_pretrained("xurong123/ChineseErrorDetectorElectra", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update model card: correct pipeline tag, add library name and paper/code links
#1
by nielsr HF Staff - opened
This PR improves the model card by:
- Updating the
pipeline_tagtotoken-classificationto reflect that the model performs character-level error detection (usingElectraForTokenClassification). - Adding the
library_name: transformersmetadata. - Specifying the correct
base_modelashfl/chinese-electra-180g-base-discriminator. - Adding links to the associated paper "CSRP: Chain-of-Thought Reasoning for Chinese Text Correction via Reinforcement Learning with Efficiency-Aware Rewards" and the official GitHub repository.
xurong123 changed pull request status to merged