howanching-clara
commited on
Commit
•
14af5bf
1
Parent(s):
4dfb479
Update README.md
Browse files
README.md
CHANGED
@@ -56,7 +56,7 @@ from transformers import pipeline
|
|
56 |
classifier = pipeline("text-classification", model="howanching-clara/classifier_for_academic_texts", tokenizer="howanching-clara/classifier_for_academic_texts")
|
57 |
|
58 |
# return output for all labels
|
59 |
-
# eg. [[{'label': 'OUT OF SCOPE', 'score': 0.
|
60 |
# classifier = pipeline("text-classification", model="howanching-clara/classifier_for_academic_texts", tokenizer="howanching-clara/classifier_for_academic_texts", return_all_scores=True)
|
61 |
|
62 |
# Perform inference on your input text
|
|
|
56 |
classifier = pipeline("text-classification", model="howanching-clara/classifier_for_academic_texts", tokenizer="howanching-clara/classifier_for_academic_texts")
|
57 |
|
58 |
# return output for all labels
|
59 |
+
# eg. [[{'label': 'OUT OF SCOPE', 'score': 0.007808608002960682}, {'label': 'MAIN TEXT', 'score': 0.028077520430088043}, {'label': 'EXAMPLE', 'score': 0.9601941108703613}, {'label': 'REFERENCE', 'score': 0.003919811453670263}]]
|
60 |
# classifier = pipeline("text-classification", model="howanching-clara/classifier_for_academic_texts", tokenizer="howanching-clara/classifier_for_academic_texts", return_all_scores=True)
|
61 |
|
62 |
# Perform inference on your input text
|