Instructions to use KoichiYasuoka/chinese-roberta-base-upos with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KoichiYasuoka/chinese-roberta-base-upos with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="KoichiYasuoka/chinese-roberta-base-upos")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("KoichiYasuoka/chinese-roberta-base-upos") model = AutoModelForTokenClassification.from_pretrained("KoichiYasuoka/chinese-roberta-base-upos", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from KoichiYasuoka/chinese-roberta-base-upos: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/KoichiYasuoka/chinese-roberta-base-upos/resolve/main/README.md
- Command line
-
hf download hf://KoichiYasuoka/chinese-roberta-base-upos/README.md
-
curl -L -o README.md https://huggingface.co/KoichiYasuoka/chinese-roberta-base-upos/resolve/main/README.md
1.14 kB
metadata
language:
- zh
tags:
- chinese
- token-classification
- pos
- wikipedia
- dependency-parsing
base_model: hfl/chinese-roberta-wwm-ext
datasets:
- universal_dependencies
license: apache-2.0
pipeline_tag: token-classification
chinese-roberta-base-upos
Model Description
This is a BERT model pre-trained on Chinese Wikipedia texts (both simplified and traditional) for POS-tagging and dependency-parsing, derived from chinese-roberta-wwm-ext. Every word is tagged by UPOS (Universal Part-Of-Speech).
How to Use
from transformers import AutoTokenizer,AutoModelForTokenClassification
tokenizer=AutoTokenizer.from_pretrained("KoichiYasuoka/chinese-roberta-base-upos")
model=AutoModelForTokenClassification.from_pretrained("KoichiYasuoka/chinese-roberta-base-upos")
or
import esupar
nlp=esupar.load("KoichiYasuoka/chinese-roberta-base-upos")
See Also
esupar: Tokenizer POS-tagger and Dependency-parser with BERT/RoBERTa/DeBERTa models