| | --- |
| | language: fa |
| | tags: |
| | - exbert |
| | license: apache-2.0 |
| | datasets: |
| | - parsQuAD |
| | --- |
| | |
| | ### Inroduction |
| | This model is finetuned from [parsbert](https://huggingface.co/HooshvareLab/bert-base-parsbert-uncased). |
| |
|
| | ### How to use |
| | ```python |
| | from transformers import AutoConfig, AutoTokenizer, AutoModel |
| | |
| | model_name = "alienit/query-bert" |
| | config = AutoConfig.from_pretrained(model_name) |
| | tokenizer = AutoTokenizer.from_pretrained(model_name) |
| | model = AutoModel.from_pretrained(model_name) |
| | text = "چرا انسانها موجودات اجتماعی هستند؟" |
| | encoded_input = tokenizer(text, return_tensors='pt') |
| | output = model(**encoded_input) |
| | ``` |