How to use rasoultilburg/uce_scibert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="rasoultilburg/uce_scibert")
# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("rasoultilburg/uce_scibert") model = AutoModelForSequenceClassification.from_pretrained("rasoultilburg/uce_scibert")
Binary causal sentence classification:
See the project repository here:
https://github.com/rasoulnorouzi/cessc/tree/main
Files info