Instructions to use teppei727/bert-large-relation14 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use teppei727/bert-large-relation14 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="teppei727/bert-large-relation14")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("teppei727/bert-large-relation14") model = AutoModelForSequenceClassification.from_pretrained("teppei727/bert-large-relation14", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
relation_dict = {
|
| 2 |
+
0:'Expansion.Conjunction',
|
| 3 |
+
1:'Comparison.Concession.Arg2-as-denier',
|
| 4 |
+
2:'Expansion.Instantiation.Arg2-as-instance',
|
| 5 |
+
3:'[no connective]',
|
| 6 |
+
4:'Temporal.Synchronous',
|
| 7 |
+
5:'Contingency.Cause.Result',
|
| 8 |
+
6:'Expansion.Substitution.Arg2-as-subst',
|
| 9 |
+
7:'Temporal.Asynchronous.Precedence',
|
| 10 |
+
8:'Comparison.Contrast',
|
| 11 |
+
9:'Expansion.Level-of-detail.Arg2-as-detail',
|
| 12 |
+
10:'Expansion.Level-of-detail.Aeg1-as-detail',
|
| 13 |
+
11:'Expansion.Equivalence',
|
| 14 |
+
12:'Temporal.Asynchronous.Succession',
|
| 15 |
+
13:'Expansion.Exception.Arg1-as-excpt'
|
| 16 |
+
}
|