|
--- |
|
language: |
|
- "lzh" |
|
tags: |
|
- "classical chinese" |
|
- "literary chinese" |
|
- "ancient chinese" |
|
- "token-classification" |
|
- "pos" |
|
- "dependency-parsing" |
|
base_model: KoichiYasuoka/modernbert-large-classical-chinese |
|
datasets: |
|
- "universal_dependencies" |
|
license: "apache-2.0" |
|
pipeline_tag: "token-classification" |
|
widget: |
|
- text: "孟子見梁惠王" |
|
--- |
|
|
|
# modernbert-large-classical-chinese-ud-square |
|
|
|
## Model Description |
|
|
|
This is a ModernBERT model pretrained on Classical Chinese texts for POS-tagging and dependency-parsing (using `goeswith` for subwords), derived from [modernbert-large-classical-chinese](https://huggingface.co/KoichiYasuoka/modernbert-large-classical-chinese) and [UD_Classical_Chinese-Kyoto](https://github.com/UniversalDependencies/UD_Classical_Chinese-Kyoto). |
|
|
|
## How to Use |
|
|
|
```py |
|
from transformers import pipeline |
|
nlp=pipeline("universal-dependencies","KoichiYasuoka/modernbert-large-classical-chinese-ud-square",trust_remote_code=True,aggregation_strategy="simple") |
|
print(nlp("孟子見梁惠王")) |
|
``` |
|
|
|
|