How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("token-classification", model="noahjadallah/cause-effect-detection")
# Load model directly
from transformers import AutoTokenizer, AutoModelForTokenClassification

tokenizer = AutoTokenizer.from_pretrained("noahjadallah/cause-effect-detection")
model = AutoModelForTokenClassification.from_pretrained("noahjadallah/cause-effect-detection")
Quick Links

Cause-Effect Detection for Software Requirements Based on Token Classification with BERT

This model uses BERT to detect cause and effect from a single sentence. The focus of this model is the domain of software requirements engineering, however, it can also be used for other domains.

The model outputs one of the following 5 labels for each token:

Other

B-Cause

I-Cause

B-Effect

I-Effect

The source code can be found here: https://colab.research.google.com/drive/14V9Ooy3aNPsRfTK88krwsereia8cfSPc?usp=sharing

Downloads last month
18
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using noahjadallah/cause-effect-detection 1