rhulsker commited on
Commit
6fa97eb
·
1 Parent(s): 3b434b5

update python example with inference script

Browse files
Files changed (1) hide show
  1. README.md +1 -13
README.md CHANGED
@@ -14,19 +14,7 @@ This model is designed to categorize IT support tickets into ITIL-standard categ
14
 
15
  ### How to Use
16
 
17
- The DavinciTech/BERT_Categorizer can be used directly after installation via the Hugging Face `transformers` library:
18
-
19
- ```python
20
- from transformers import AutoModelForSequenceClassification, AutoTokenizer
21
- model_name = "DavinciTech/BERT_Categorizer"
22
- model = AutoModelForSequenceClassification.from_pretrained(model_name)
23
- tokenizer = AutoTokenizer.from_pretrained(model_name)
24
- ```
25
-
26
- # Example Usage
27
- ```python
28
- inputs = tokenizer("Example of a support ticket text", return_tensors="pt")
29
- ```
30
 
31
  ### Intended Uses and Limitations
32
 
 
14
 
15
  ### How to Use
16
 
17
+ The DavinciTech/BERT_Categorizer can be used directly after installation via the Hugging Face `transformers` library. The model returns a packed array of predictions for all the categories which need to be decoded to find the most likely candidate for each class. Please see the included 'inference.py' script for an example of how to use the model and decode the output.
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  ### Intended Uses and Limitations
20