sarkii commited on
Commit
03968c0
1 Parent(s): b87ca0e

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +157 -0
README.md ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: sentence-transformers
3
+ tags:
4
+ - sentence-transformers
5
+ - sentence-similarity
6
+ - feature-extraction
7
+ base_model: robzchhangte/MizBERT
8
+ pipeline_tag: sentence-similarity
9
+ license: apache-2.0
10
+ ---
11
+
12
+ # MizoEmbed
13
+
14
+ MizoEmbed is the first embedding model developed specifically for the Mizo language. This pioneering model provides vector representations of Mizo text, enabling various natural language processing tasks and applications for the underrepresented language.
15
+
16
+ The model maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
17
+
18
+ ## Model Details
19
+
20
+ ### Model Description
21
+ - **Model Type:** Sentence Transformer
22
+ - **Base model:** [robzchhangte/MizBERT](https://huggingface.co/robzchhangte/MizBERT) <!-- at revision 48fbb5f83050aa1b3d4565e784228c0b621815a7 -->
23
+ - **Embedding Dimension:** 768 tokens
24
+ - **Context Length:** 512
25
+ - **Language:** Mizo
26
+
27
+
28
+
29
+ ## Usage
30
+
31
+ ### Direct Usage (Sentence Transformers)
32
+
33
+ First install the Sentence Transformers library:
34
+
35
+ ```bash
36
+ pip install -U sentence-transformers
37
+ ```
38
+
39
+ Then you can load this model and run inference.
40
+ ```python
41
+ from sentence_transformers import SentenceTransformer
42
+
43
+ # Download from the 🤗 Hub
44
+ model = SentenceTransformer("Lms18/mizo_embed")
45
+ # Run inference
46
+ sentences = [
47
+ 'Alassio hian he tuipui kama resort lian pathumte chu a ti zo a, thlasik khaw vawt tak avanga a huante enkawl chu a chhuang hle.',
48
+ 'Alassio-a thlasik lum chuan a huan mawi tak takte chu a siam a ni.',
49
+ 'Snowboarder pakhat chu snowboarding a ni.',
50
+ ]
51
+ embeddings = model.encode(sentences)
52
+ print(embeddings.shape)
53
+ # [3, 768]
54
+
55
+ # Get the similarity scores for the embeddings
56
+ similarities = model.similarity(embeddings, embeddings)
57
+ print(similarities.shape)
58
+ # [3, 3]
59
+ ```
60
+
61
+ <!--
62
+ ### Direct Usage (Transformers)
63
+
64
+ <details><summary>Click to see the direct usage in Transformers</summary>
65
+
66
+ </details>
67
+ -->
68
+
69
+ <!--
70
+ ### Downstream Usage (Sentence Transformers)
71
+
72
+ You can finetune this model on your own dataset.
73
+
74
+ <details><summary>Click to expand</summary>
75
+
76
+ </details>
77
+ -->
78
+
79
+ <!--
80
+ ### Out-of-Scope Use
81
+
82
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
83
+ -->
84
+
85
+ <!--
86
+ ## Bias, Risks and Limitations
87
+
88
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
89
+ -->
90
+
91
+ <!--
92
+ ### Recommendations
93
+
94
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
95
+ -->
96
+
97
+ ## License
98
+ This model is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for details.
99
+
100
+ ## Citation
101
+
102
+ ### BibTeX
103
+
104
+
105
+ #### MizBERT
106
+ ```bibtex
107
+ @article{lalramhluna2024mizbert,
108
+ title={MizBERT: A Mizo BERT Model},
109
+ author={Lalramhluna, Robert and Dash, Sandeep and Pakray, Dr Partha},
110
+ journal={ACM Transactions on Asian and Low-Resource Language Information Processing},
111
+ year={2024},
112
+ publisher={ACM New York, NY}
113
+ }
114
+ ```
115
+
116
+ #### SentenceTransformers
117
+ ```bibtex
118
+ @inproceedings{reimers-2019-sentence-bert,
119
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
120
+ author = "Reimers, Nils and Gurevych, Iryna",
121
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
122
+ month = "11",
123
+ year = "2019",
124
+ publisher = "Association for Computational Linguistics",
125
+ url = "https://arxiv.org/abs/1908.10084",
126
+ }
127
+ ```
128
+
129
+ #### MultipleNegativesRankingLoss
130
+ ```bibtex
131
+ @misc{henderson2017efficient,
132
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
133
+ author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
134
+ year={2017},
135
+ eprint={1705.00652},
136
+ archivePrefix={arXiv},
137
+ primaryClass={cs.CL}
138
+ }
139
+ ```
140
+
141
+ <!--
142
+ ## Glossary
143
+
144
+ *Clearly define terms in order to be accessible across audiences.*
145
+ -->
146
+
147
+ <!--
148
+ ## Model Card Authors
149
+
150
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
151
+ -->
152
+
153
+ <!--
154
+ ## Model Card Contact
155
+
156
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
157
+ -->