Commit
·
09d8614
1
Parent(s):
2606aa3
Update README.md
Browse files
README.md
CHANGED
@@ -33,7 +33,7 @@ tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, max_len=512)
|
|
33 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer) # set device=0 to use GPU
|
34 |
|
35 |
# See https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.pipeline
|
36 |
-
print(pipe("An ethical code has been issued to all Group employees."))
|
37 |
```
|
38 |
|
39 |
## More details can be found in the paper
|
|
|
33 |
pipe = pipeline("text-classification", model=model, tokenizer=tokenizer) # set device=0 to use GPU
|
34 |
|
35 |
# See https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.pipeline
|
36 |
+
print(pipe("An ethical code has been issued to all Group employees."), padding=True, truncation=True)
|
37 |
```
|
38 |
|
39 |
## More details can be found in the paper
|