TunBERT / README.md
not-lain's picture
Update README.md
eb788d9
|
raw
history blame
804 Bytes
---
license: mit
datasets:
- tsac
language:
- ar
---
# Disclamer
I do not own, distribute, or take credits for this model, all copyrights belong to [Instadeep](https://huggingface.co/InstaDeepAI) under the [MIT licence](https://github.com/instadeepai/tunbert/)
# how to load the model
```python
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("not-lain/TunBERT")
model = AutoModelForSequenceClassification.from_pretrained("not-lain/TunBERT",trust_remote_code=True)
```
**IMPORTANT** : make sure to enable `trust_remote_code=True`
# how to use the model
```python
text = "[insert text here]"
inputs = tokenizer(text,return_tensors='pt') # make sure you are using the `return_tensors='pt'` parameter
output = model(**inputs)
```