Ndamulelo Nemakhavhani commited on
Commit
e8a05bf
1 Parent(s): 8da0e6a

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -0
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc
3
+ language:
4
+ - ve
5
+ metrics:
6
+ - perplexity
7
+ library_name: transformers
8
+ tags:
9
+ - tshivenda
10
+ - south africa
11
+ - low-resource
12
+ - bantu
13
+ - xlm-roberta
14
+ widget:
15
+ - text: "Rabulasi wa <mask> u khou bvelela nga u lima"
16
+ - text: "Vhana vhane vha kha ḓi bva u bebwa vha kha khombo ya u <mask> nga Listeriosis"
17
+ ---
18
+
19
+ # Zabantu - Tshivenda
20
+
21
+ This is a variant of [Zabantu](https://huggingface.co/dsfsi/zabantu-bantu-250m) pre-trained on a monolingual dataset of Tshivenda(ven) sentences on a
22
+ transformer network with 120 million traininable parameters.
23
+
24
+
25
+ # Usage Example(s)
26
+
27
+ ```python
28
+ from transformers import pipeline
29
+ # Initialize the pipeline for masked language model
30
+ unmasker = pipeline('fill-mask', model='dsfsi/zabantu-ven-120m)
31
+ # The Sepedi sentence with a masked token
32
+ sample_sentences = ["Rabulasi wa <mask> u khou bvelela nga u lima",
33
+ "Vhana vhane vha kha ḓi bva u bebwa vha kha khombo ya u <mask> nga Listeriosis"]
34
+
35
+ # Perform the fill-mask task
36
+ results = unmasker(sentence)
37
+ # Display the results
38
+ for result in results:
39
+ print(f"Predicted word: {result['token_str']} - Score: {result['score']}")
40
+ print(f"Full sentence: {result['sequence']}\n")
41
+ print("=" * 80)
42
+ ```