File size: 806 Bytes
429dae9 f869851 429dae9 f594b7e 429dae9 2a7f43a 429dae9 2a7f43a 429dae9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
---
license: apache-2.0
language:
- vi
metrics:
- perplexity
pipeline_tag: fill-mask
---
# <a name="introduction"></a> Bkcare-base-pretrained: Pre-trained Language Models for Vietnamese in Health Text Mining
bkcare-bert-pretrained is the a strong baseline language models for Vietnamese in Healthcare domain.
### Example usage <a name="usage1"></a>
```python
import torch
from transformers import AutoModel, AutoTokenizer
vihealthbert = AutoModel.from_pretrained("BookingCare/bkcare-bert-pretrained")
tokenizer = AutoTokenizer.from_pretrained("BookingCare/bkcare-bert-pretrained")
line = "Bệnh viện chợ rẫy ở Thành phố Hồ Chí Minh"
input_ids = torch.tensor([tokenizer.encode(line)])
with torch.no_grad():
features = vihealthbert(input_ids) # Models outputs are now tuples
``` |