hmthanh commited on
Commit
ac37bf6
1 Parent(s): 2867842

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -4
README.md CHANGED
@@ -1,6 +1,4 @@
1
- ---
2
- license: mit
3
- ---
4
  # Vietnamese Legal Text BERT
5
  #### Table of contents
6
  1. [Introduction](#introduction)
@@ -39,10 +37,15 @@ from transformers import AutoModel, AutoTokenizer
39
  phobert = AutoModel.from_pretrained("hmthanh/VietnamLegalText-SBERT")
40
  tokenizer = AutoTokenizer.from_pretrained("hmthanh/VietnamLegalText-SBERT")
41
 
42
- sentence = 'Chúng_tôi những nghiên_cứu_viên .'
43
 
44
  input_ids = torch.tensor([tokenizer.encode(sentence)])
45
 
46
  with torch.no_grad():
47
  features = phobert(input_ids) # Models outputs are now tuples
48
  ```
 
 
 
 
 
 
1
+
 
 
2
  # Vietnamese Legal Text BERT
3
  #### Table of contents
4
  1. [Introduction](#introduction)
 
37
  phobert = AutoModel.from_pretrained("hmthanh/VietnamLegalText-SBERT")
38
  tokenizer = AutoTokenizer.from_pretrained("hmthanh/VietnamLegalText-SBERT")
39
 
40
+ sentence = 'Vượt đèn đỏ bị phạt bao nhiêu tiền?'
41
 
42
  input_ids = torch.tensor([tokenizer.encode(sentence)])
43
 
44
  with torch.no_grad():
45
  features = phobert(input_ids) # Models outputs are now tuples
46
  ```
47
+
48
+
49
+ ---
50
+ license: mit
51
+ ---