universal-dependencies/universal_dependencies
Updated • 4.33k • 36
How to use KoichiYasuoka/roberta-base-korean-ud-goeswith with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("token-classification", model="KoichiYasuoka/roberta-base-korean-ud-goeswith") # Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification
tokenizer = AutoTokenizer.from_pretrained("KoichiYasuoka/roberta-base-korean-ud-goeswith")
model = AutoModelForTokenClassification.from_pretrained("KoichiYasuoka/roberta-base-korean-ud-goeswith")This is a RoBERTa model pre-trained on Korean texts for POS-tagging and dependency-parsing (using goeswith for subwords), derived from roberta-base-korean-hanja.
from transformers import pipeline
nlp=pipeline("universal-dependencies","KoichiYasuoka/roberta-base-korean-ud-goeswith",trust_remote_code=True,aggregation_strategy="simple")
print(nlp("홍시 맛이 나서 홍시라 생각한다."))
Base model
klue/roberta-base