How to use pdjohn/C-BERT-Zero with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="pdjohn/C-BERT-Zero")
# Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("pdjohn/C-BERT-Zero") model = AutoModelForTokenClassification.from_pretrained("pdjohn/C-BERT-Zero")
A prototype to extract Causal Roles (CAUSE, EFFECT and INDICATOR) in German Sentences.
Notice: A newer model with relation classification is available here.
Files info