模型:
KoichiYasuoka/bert-base-russian-upos
This is a BERT model pre-trained with UD_Russian for POS-tagging and dependency-parsing, derived from rubert-base-cased . Every word is tagged by UPOS (Universal Part-Of-Speech).
from transformers import AutoTokenizer,AutoModelForTokenClassification tokenizer=AutoTokenizer.from_pretrained("KoichiYasuoka/bert-base-russian-upos") model=AutoModelForTokenClassification.from_pretrained("KoichiYasuoka/bert-base-russian-upos")
or
import esupar nlp=esupar.load("KoichiYasuoka/bert-base-russian-upos")
esupar : Tokenizer POS-tagger and Dependency-parser with BERT/RoBERTa/DeBERTa models