atahanuz commited on
Commit
5bcd0bb
·
verified ·
1 Parent(s): d405036

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -13,7 +13,7 @@ metrics:
13
  - accuracy
14
  - f1
15
  model-index:
16
- - name: atahanuz/bert-classifier
17
  results:
18
  - task:
19
  type: text-classification
@@ -55,7 +55,7 @@ The easiest way to use this model is via the Hugging Face `pipeline`.
55
  from transformers import pipeline
56
 
57
  # Initialize the pipeline
58
- classifier = pipeline("text-classification", model="atahanuz/bert-classifier")
59
 
60
  # Predict
61
  text = "Bu harika bir filmdi, çok beğendim."
@@ -74,7 +74,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
74
  import torch
75
 
76
  # 1. Load model and tokenizer
77
- model_name = "atahanuz/bert-classifier"
78
  tokenizer = AutoTokenizer.from_pretrained(model_name)
79
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
80
 
 
13
  - accuracy
14
  - f1
15
  model-index:
16
+ - name: atahanuz/bert-offensive-classifier
17
  results:
18
  - task:
19
  type: text-classification
 
55
  from transformers import pipeline
56
 
57
  # Initialize the pipeline
58
+ classifier = pipeline("text-classification", model="atahanuz/bert-offensive-classifier")
59
 
60
  # Predict
61
  text = "Bu harika bir filmdi, çok beğendim."
 
74
  import torch
75
 
76
  # 1. Load model and tokenizer
77
+ model_name = "atahanuz/bert-offensive-classifier"
78
  tokenizer = AutoTokenizer.from_pretrained(model_name)
79
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
80