yentinglin commited on
Commit
e1c03cd
1 Parent(s): dab02c9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -1
README.md CHANGED
@@ -1,6 +1,19 @@
1
  ---
2
  license: cc-by-nc-sa-4.0
3
  ---
4
- WIP
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  license: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en
6
 
 
1
  ---
2
  license: cc-by-nc-sa-4.0
3
  ---
4
+ Work in Progress
5
+
6
+ # Usage
7
+ ```python
8
+ from transformers import pipeline
9
+
10
+ embedder = pipeline("feature-extraction", "yentinglin/bert-base-zhtw")
11
+
12
+ embeddings = embedder("台灣使用繁體中文", return_tensors=True)
13
+
14
+ print(embeddings.shape)
15
+ # torch.Size([1, 10, 768])
16
+ ```
17
+
18
  license: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en
19