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