|
--- |
|
language: |
|
- "lzh" |
|
tags: |
|
- "classical chinese" |
|
- "literary chinese" |
|
- "ancient chinese" |
|
- "token-classification" |
|
- "pos" |
|
- "dependency-parsing" |
|
datasets: |
|
- "universal_dependencies" |
|
license: "apache-2.0" |
|
pipeline_tag: "token-classification" |
|
widget: |
|
- text: "子曰學而時習之不亦説乎有朋自遠方來不亦樂乎人不知而不慍不亦君子乎" |
|
--- |
|
|
|
# Xunzi-Qwen2-7B-upos |
|
|
|
## Model Description |
|
|
|
This is a Qwen2 model pre-trained on Classical Chinese texts for POS-tagging, derived from [Xunzi-Qwen2-7B](https://www.modelscope.cn/models/Xunzillm4cc/Xunzi-Qwen2-7B). Every word is tagged by [UPOS](https://universaldependencies.org/u/pos/) (Universal Part-Of-Speech) and [FEATS](https://universaldependencies.org/u/feat/). |
|
|
|
## How to Use |
|
|
|
```py |
|
from transformers import pipeline |
|
nlp=pipeline("upos","KoichiYasuoka/Xunzi-Qwen2-7B-upos",trust_remote_code=True,aggregation_strategy="simple") |
|
print(nlp("不入虎穴不得虎子")) |
|
``` |
|
|