DFKI-NLP / sherlock

State-of-the-art Information Extraction
3 stars 1 forks source link

Use AutoTokenizer/AutoModel* #57

Open leonhardhennig opened 2 years ago

leonhardhennig commented 2 years ago

In https://github.com/DFKI-NLP/sherlock/blob/23e7131eab21f83994dc85d4fbcb9bd5c682788f/scripts/run_binary_relation_clf.py#L770-L780, use AutoTokenizer / AutoModelForSequenceClassification instead of hard-coded classes from https://github.com/DFKI-NLP/sherlock/blob/23e7131eab21f83994dc85d4fbcb9bd5c682788f/scripts/run_binary_relation_clf.py#L74